Instead of add_action( 'admin_init', [ $this, 'aa_admin_page' ] );
Try: add_action( 'admin_menu', [ $this, 'aa_admin_page' ] );
Edit: And all instances of $this->$foo
should be $this->foo
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to stop showing admin notice after close button has been clicked
- Is There a WordPress Hook to Filter the Edit Posts View?
- Is there any record of installed plugins in the database?
- Add content to /wp-admin/plugin-install.php admin screens
- Custom admin column disappearing when using Quick Edit [duplicate]
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- how to not show plugin in admin area
- How could I execute my plugin just in frontend (not in backend)
- Custom height/width for thickbox in WP Backend
- Hide Theme options and Customize Admin menu
- ‘wp_login’ action hook not working with wp-login.php file
- All Users > User List > Update User Meta Field Inline
- Create tabs in admin options page from custom post type loop
- How to make multiple admin pages for one plugin?
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- How to remove a CPT Menu from the Root Admin only
- Is there a better way of handling AJAX requests in WordPress?
- I cannot include a file in my plugin settings page
- force logged in user to stay in the dashboard
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- How to properly enqueue jQuery knob on WordPress without conflict?
- Admin menu hilighting wrong item for CPT
- Is admin section completely customizable in terms of styling?
- Store admin page into variable
- Add custom fields in the new and edit the site forms without touching the WP core
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- Combining JS files to one script
- warning wp session
- Submitting form to admin-post.php WordPress
- How to implement WordPress plugin update that modifies the database?
- WordPress Plugin Development In MVC Architecture, How?
- Customize plugin update “new version is available” text
- category_name not working (not showing up in sql query debug)
- What happens when two plugins have the same 3rd party class included into them?
- add_rewrite_rule, plugin activation and plugin deactivation
- How to handel multiple checkbox field in the admin settings page with Settings API
- Update Multiple Post Meta for the Same Post In One call?
- Allowing Custom Capability to Manage Plugin Options
- wp_insert_user – how to send verification email before logging in
- Custom plugin settings: clicking “save changes” does not display success message
- How to load a new template page according to a particular URL?
- How can I filter blog name?
- Detect if a plugin was included in a certain page
- How to add an attribute to the body tag with a plugin?
- Override the core function locate_template
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Weird problems after recovery from security breach
- Set user ID at time of wp_create_user
- How to Create a Custom Plugin Permalink
- How to create custom tables in WordPress using my own plugin?
- How would I go about creating a user ranked post popularity page?
- How to modify WCMP Rest API response?
- Making a Template for a CPT created by a plugin
- Woocommerce dependent plugin
- Customised plugin failed to install and activate
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- WPDB: Update table
- How to get all posts belongs to a user between a certain date
- wp-load.php redeclares classes
- Where should custom post types be registered in a plugin?
- License validate function
- wp_enqueue_style on template_redirect level?
- plugin uninstall function drop the tables, but shows errors on admin
- How to use template inside plugin shortcode with variables for big HTML code
- getting notifications about updates only in the “core” page
- Symlink a plugin in local development, works but got Debug error message – Windows 10
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Display my plugins content based on a pages post_id
- Make get_permalink() work outside the Loop using filters
- Pluging with content for a specific page or post
- Does WordPress do any internal caching if no plugin installed?
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- How can i export and import my plugin option WordPress
- Upload Image with a file URL and show dynamically on Frontend
- Why won’t wp_enqueue_script work within any plugin file?
- Help to Create a Simple Plugin to make a post
- How can i solve php upgrade problem
- Create multiple posts when a custom post is created
- how override a define
- WordPress plugin blog creation
- Preserving existing functionality converting HTML to WordPress
- submit form data to wordpress existing database table using my plugin
- Get content and send to 3rd party
- Why is the WordPress update_option not working in this code?
- Add predefined values to custom post plugin
- wp-admin will not redirect to wp-login.php
- Getting 404 page not found error while trying to access add new plugin / themes
- How to set the default options on an existing plugin in a WP MU new user install
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- Outputting custom field query from a plugin to the website header
- php include returns 1 as output with other outputs [closed]
- Custom wordpress plugin does not save select element
- Allow direct access to files/folders within WordPress to replace wp-admin
- How to set meta-data for my plugin
- WordPress isn’t sending welcome email with the password reset
- move setting data from wordpress api to codestar freamwork
- wp_enqueue_script doesn’t load JS in plugin
- AI Code For OpenAI