jQuery does not work

Scripts and stylesheets should always be loaded in the head or in the footer via the wp_enqueue_scripts action hook. wp_enqueue_scripts is the proper hook to use when enqueuing items that are meant to appear on the front end The init hook executes before wp_head which is to early for script to load in the header. … Read more

add_action and do_action

Please check also wp-includes/general-templates.php but wp_head() hooks ‘wp_head’ like this: function wp_head() { do_action( ‘wp_head’ ); } So I would change your code like this for example: add_action( ‘wp_head’, ‘my_prepare_pick_data’ ); add_action( ‘my_add_meta_tags’, ‘my_add_meta_tags’ ); function my_prepare_pick_data() { $pick_data = new YourPickDataClass(); // change this as you like do_action( ‘my_add_meta_tags’, $pick_data ); } function my_add_meta_tags( … Read more

Problem with removing plugin action

What you’re doing will only remove an action added in a static method of class. From https://codex.wordpress.org/Function_Reference/remove_action If an action has been added from within a class, for example by a plugin, removing it will require accessing the class through a variable that holds the class instance. add_action( ‘wp_head’, ‘remove_my_class_action’ ); function remove_my_class_action(){ global $my_class; … Read more