The priority argument of add_action
and remove_action
need to be the same. Since wm_menu_social
is hooked at 130
you need to specify 130
when removing it:
remove_action( 'tha_header_top', 'wm_menu_social', 130 );
Related Posts:
- Removing parent theme action on pluggable function not working
- Remove action within a class in a parent theme’s includes folder from the child theme
- Removing action from template class
- How to know what functions are hooked to an action/filter?
- Difference between do_action and add_action
- WooCommerce: change display order of product short description and price [closed]
- Difference between after_setup_theme and init action hooks?
- Please explain how these hooks work
- add_action(‘wp_ajax_[action name]’, myfunction) problem
- How to remove action hook done in a plugin from functions.php in my theme?
- trigger save_post event programmatically
- Implementing advanced add_* function wrappers
- My add_action (wp_footer, ‘method’) is not calling?
- What is the earliest possible hook for safely using `is_front_page`?
- Send data to 3rd party api with wp_remote_post on wp_login
- is it possible to get the hook name in add_action?
- Difference between hooks Plugin_loaded and admin_int?
- admin_post hook not called
- Check if action hook exists before adding actions to it
- How to debug removal of rewrite rule flushing?
- after login that will redirect user role into a page
- Detect type of post status transition
- Create hooks based on an array of hook names?
- Hook before inserting user into database [duplicate]
- How to pass arguments to add_action() [duplicate]
- Is there a recover_post hook to go with trash_post hook?
- WP Admin Bar frontend issue with dashicon deregister
- A good way to add a different background image for each page?
- How can i trigger an action manually?
- How to override languages files in wp-content/languages/themes with child theme
- wp_redirect() not working on form submission with init hook
- add_action for lost_password or modify wp-login.php?action=lostpassword
- Run add_action hook if condition
- Add my own function to existing WooCommerce hook
- Empty Super Cache programmatically (with ACF action) [closed]
- How to use do_action_ref_array?
- Admin Hook at the Login Page
- How to find hooks as per Just-In-Time approach?
- How To Make Sure That My Action Hook Executes Last
- Does update_comment_meta hook exists?
- how to determine how many and what kind of arguments are passed to hooks
- WP CLI Get all Enqueued Scripts and Styles
- Delay an action until current action is completed
- What’s hook to use immediately after a user is authentcated [duplicate]
- Looking for a hook for post.php
- Save User Meta Email Address in Lowercase
- Save acf field data via acf/save_post before post is saved
- Execute JavaScript in WordPress Hook
- schedule event in class oriented plugin
- Hooks are not being removed in child theme
- How to replace a function using a child theme?
- Which action hook should I use to intercept a form upon submission?
- Would there be anything stopping me from removing both wp_head and wp_footer?
- Is it possible to add the_content filter upon login?
- WordPress wp_loaded action hook
- add_action second argument missing
- I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types) [duplicate]
- admin_notices action doesn’t trigger within save_post action
- I don’t understand how add_action and do_action work in tandem. The former executes the code already…what is do_action for?
- Check if `do_action()` in WordPress returns any result
- How to cancel an action hooked to untrash_post? or any hook
- Add Different Actions To Different Page’s wp_footer
- add_action hook for publish_post not working
- Add back in child theme what the parent theme removed with remove_action
- Hook for inserting?
- Notify admin when Custom post meta data gets updated or deletet
- dynamic add_action according to child pages (for homepage control)
- Remove genesis_404 hook from genesis_loop [closed]
- Add html code in admin page
- What hook to add at start of WordPress load
- A good hook to check authorization and redirect?
- Adding custom Bulk Actions
- Is there a author_update action?
- Restrict editing of post type to list stored in user meta
- How to stop execution of a function via add_action hook?
- Can we change the hook firing sequence?
- changing genesis_before_while in new theme framework
- Rewrite the search page to use an appended slug + parameter
- How to call do_action() to pass arguments to hooked functions that take different number of args?
- remove_action not working for a function
- do_action not working in loop
- add_action doesn’t work for my function
- profile_update hook does not fire from front-end
- Add HTML code before the title of the Tag page
- Check if front page within function passed to action
- Hooks with same priority number. Can one stack items returned in divs, position: absolute each with their own z-index?
- Can add_image_size be added earlier
- $new_pass always returns null – password_reset hook
- Why does get_post() not return anything?
- WordPress save_post hook not firing when checking if _GET[‘post’] is set
- Object oriented programming, add_action in constructor not firing
- add hook restricted only to either plugins or themes?
- Using actions, hooks and filters in a non-WordPress page
- addaction hook cause redirection problem
- Which hook should I use for this scenario regarding the registration process and account/profile update?
- frontend show edit profile with selected custom options
- Redirect back to origin page after using get_delete_post_link()
- How do I override the user’s input when updating a custom post type’s permalink?
- How to add a new link to the default register form’s footer links?
- admin_post hook not working