Do WordPress Core Filenames Work as Hooks?
-
04-11-2019 - |
Question
This is in reference to another answer here on wordpress.stackexchange. The answerer used the filename as the hook to enqueue scripts and styles to certain pages.
add_action( 'admin_print_scripts-post-new.php', 'portfolio_admin_script', 11 );
add_action( 'admin_print_scripts-post.php', 'portfolio_admin_script', 11 );
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange