Skip Navigation

[Resolved] WP admin url shown at source code

This support ticket is created 7 years, 11 months ago. 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.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#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 Toolset client and need related help, please open a new support ticket.