Injecting HTML on (arbitrary) admin pages

If you check out the source of the /wp-admin/admin-header.php page you find the following actions: Inside div#wpbody: in_admin_header, Inside div.wpbody-content: network_admin_notices user_admin_notices admin_notices all_admin_notices I’m not sure what you mean by the right location, but I guess the all_admin_notices action would be the most suitable one for you?

Plugin function inside custom plugin

You’re probably making the check too early. Make sure all plugins are loaded before trying to access the methods they provide. You can hook into plugins_loaded action to make sure all plugins are loaded before trying to use the functions they define. class My_Plugin { public static function init() { if( function_exists( ‘wp_bannerize’ ) ) … Read more

Let plugin check if taxonomy is already registered by another plugin

The problem is that the function is defined whether you use it or not. What you want is the PHP function function_exists if ( !taxonomy_exists( ‘my_taxonomy’ ) && !function_exists(‘register_taxonomy_my_taxonomy’) ) { add_action( ‘init’, ‘register_taxonomy_my_taxonomy’ ); function register_taxonomy_my_taxonomy() { … } You should be able to create a reusable library (class) that would take care of … Read more