Run an action only when Widget actually instantiated (not just registered)
I’m still eager to hear of an action that applies to this use case, but here’s a more brute-force approach, if nothing else turns up: // within My_Widget class definition private static $metaboxes_added = false; // to ensure we don’t add them more than once // inside My_Widget class constructor add_action( ‘init’, array( $this, ‘add_metaboxes’ … Read more