admin.php flow
-
Hi,
I thought of understanding better the nuts and bolts of WordPress core program during this slack period by reading the code and drawing a general flowchart for my own purpose. I have a few questions though:
Screenshot of the program flow in question: https://prnt.sc/xohtiz
(Q1) I was wondering how do_action( “load-{$plugin_page}” ) gets triggered. Or rather, does add_menu_page “call” load-{$plugin_page} apart from load-{$page_hook}?
Screenshot of code: https://prntscr.com/xoj8mh
(Q2) Is there any use case in the core that I could look at for this hook: do_action( “admin_action_{$action}” );
Screenshot of code: https://prntscr.com/xoj7g9
The questions above aren’t for a specific project as such. This is a “back to basics” exercise in order for me to better structure plugins etc. Equally important, it will make me better diagnose issues that may come up with sites I maintain.
Thanks in advance.
Cheers.
M
- The topic ‘admin.php flow’ is closed to new replies.