For removing an action hook you should use the same action name, callback name and the priority that was used to add a action in parent theme.
And register it on init
add_action( 'init', 'remove_my_action');
function remove_my_action() {
remove_action( 'woocommerce_before_shop_loop','storefront_sorting_wrapper',9 );
}
Read about remove_action
Related Posts:
- Is this the correct way to enqueue style sheets from parent theme and then from child theme in wordpress?
- Remove action not working in child theme
- How to do_action and get a return value?
- Remove an action from an external Class
- Does the event ‘wp_version_check’ even exist? What is it doing?
- Unable to prevent function using save_post firing twice
- Difference between do_action(‘admin_enqueue_scripts’, $hook_suffix) and do_action(“admin_print_styles-$hook_suffix”) syntax
- Why, Where, and When to use reference pointers in filters/hooks?
- Add a Custom Field in Comment Box AFTER text area BUT BEFORE Send button
- Using wp_insert_post and post_update_meta but need to fire save_post afterward
- enqueuing React script and hooking its target div fails to load script
- Having an add_action( ‘user_new_form’,) [closed]
- Using auth_redirect returns cannot modify header information
- Problem:Save Several Duplicate posts in The Database and then Error nesting level of ‘100’ reached
- How to remove an action added by a child theme of Genesis
- wp_get_attachment_metadata returns false with add_action() ‘add_attachment’ hook
- How can I invoke an action after a CiviCRM triggering event?
- Remove action from a plugin class
- how can I use add_action with external class which the function contain 2 argument?
- remove_action not working with procedural function
- Why Should We Use wp_clear_scheduled_hook and What it Does?
- Woocommerce Change placement with wrapper
- Which action fire in front-end single post only
- Unable to show error message using wp_login action
- array of objects to do_action, callback gets singular object?
- where is the documentation for add_action() parameters?
- Which action is triggered when a theme was modified?
- how can I use add_action run another function when publishing new post?
- Call add_action() in function wordpress
- How to remove function?
- Validate form in functions.php, send errors back to template
- What is the callback sent to add_submenu_page() invoked by WordPress?
- How to track post number on the_loop
- How can I trigger actions manually?
- Add meta field after post has been published
- $GLOBALS[‘hook_suffix’] variable empty
- publish_post action hook not working
- add_action() in switch statement
- Problem with get_the_excerpt when using an add_action(‘the_content’) containing script tags
- Gutenberg – Dispatch action or setAttributes() on Post Save/Update action instead of onChange listener
- Using Nested add_action()
- WordPress action admin_post for non-admin authenticated users – Form submission
- Instantiating classes through add_action and saving them to user_meta data [closed]
- Are the hooks in the dashboard such as “load-$page_slug$” and “admin-head-$page_slug$” reliable and consistent throughout installs?
- Is there way to run a code every time when any cron is run?
- Removing an action from wp_footer called in a class that’s inside a bigger class
- add_action and do_action
- How to call a static function in add_action() inside another static function?
- Add “add to cart” button in WooCommerce [closed]
- Gravity Forms parameters return 1
- cannot filter after using pre_get_posts
- Generate payment URL in custom email [closed]
- Why is my css and js not enqueued until footer?
- missing argument 2 when passing arguments to add_action
- comment_post callback function: how to run it in the background.
- Add new users to “add new user” page on admin’s dashboard
- Add back in child theme what the parent theme removed with remove_action
- W3TC manual cache flush does not work
- Run a function on all posts
- Remove an action added within a class in a WordPress plugin
- add_action( ‘publish_pelicula’, ‘post_published_notification’, 10, 2 ); does not trigger propperly
- Remove action in a parent theme from the child theme
- Remove action within a class in a parent theme’s includes folder from the child theme
- add_action.. will work if function is empty?
- save_post not triggered when a post is updated
- Action ‘init’ function doesn’t return variable
- Trying to write a function in an external php file to manage admin menu visibility
- remove_action: Initial attempt failed while a later attempt worked
- Insert Google authorship into WordPress header
- Action inside another action not working
- register_post_type not working in wordpress 3.6
- How can I get more out of `$post` in an `add_action` callback?
- How to use add_action inside files included by theme’s functions.php
- output custom Posts on a Page
- WordPress sent multiple requests on update
- do_action in API call
- Add Tag to post after publishing
- remove_action from parent theme using child theme functions.php
- Call to Action Button – Resize Help [closed]
- How do I dequeue js/css at the last possible moment?
- wpdb->insert creates duplicate rows
- Remove action from plugin
- Need data from two different actions
- Understanding and using did_action() in a conditional statement
- Adding a conditional to work on certain pages/page templates to an add_action()
- Why is this require statement not working?
- Adapting functions from Genesis theme
- Adding add_action function
- XML Imported Custom Posts
- Invoke a function before the action hook
- using media_handle_sideload() to add mp4 files to Media Library
- save_post action not firing when save
- Removing action from template class
- WooCommerce wp_insert_post action firing on every save
- How to enable/disable a hook with theme options
- Passing arguments in add_action inside search template
- Building WP Web App: Creating a Feed for post revisions
- Can admin_bar_menu or another action be used to modify the admin bar on the admin side?
- remove an action hook function on a plugin from a theme
- What is the first action or filter executed by wordpress?