Skip Navigation

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

This support ticket is created Il y a 6 années et 7 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.

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 6 années et 7 mois.

Assigned support staff: 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

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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