Skip Navigation

[Résolu] WP admin url shown at source code

This support ticket is created Il y a 7 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : ,

This topic contains 1 réponse, has 2 voix.

Last updated by Luo Yang Il y a 7 années et 6 mois.

Assisted by: Luo Yang.

Auteur
Publications
#450580

There's a cdata js code at bottom (juz before body close tag) which reveals the site admin url.

eg.

var wpv_pagination_local = {"front_ajaxurl":"http:

i always change the default admin url to something else but seems what im doing is redundant as the above mentioned still reveals it all in the page source.

#450871

Dear Yap,

Views plugin is using wordpress built-in ajax URL to get the ajax response, see wordpress document:
https://codex.wordpress.org/AJAX_in_Plugins

...
generate it using this expression: admin_url( 'admin-ajax.php' )
...

File admin-ajax.php is wordpress core file /wp-admin/admin-ajax.php, and it is required for AJAX features of Views plugin, for example:
AJAX pagination and AJAX search form.

So it is not possible hide it front the front-end. if you agree, we can take it as a feature request. thanks

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.