admin管理员组

文章数量:1122846

I would like to fetch some portions of URL of Admin Page.Like I would like to fetch admin.php?page=my-custom-page from this URL .php?page=my-custom-page.

How can I do that ?

I would like to fetch some portions of URL of Admin Page.Like I would like to fetch admin.php?page=my-custom-page from this URL https://example.com/wp-admin/admin.php?page=my-custom-page.

How can I do that ?

Share Improve this question asked Aug 25, 2024 at 5:55 FoysalFoysal 4451 gold badge5 silver badges15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Detecting Wordpress admin screens using URL parameters can be a pain in the butt and also raise security issues. However, there's a whole set of built in functions ready to help... but first off, why are you trying to detect an admin page using a funky string like admin.php?page=my-custom-page is this an admin page? an options page? a custom post type? each has it's own way of implementing in WP admin.

本文标签: plugin developmentFetch portion of Admin URL