• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / remove_action() – Removes a function from a specified action hook.

You appear to be a bot. Output may be restricted

Description

Removes a function from a specified action hook.

This function removes a function attached to a specified action hook. This method can be used to remove default functions attached to a specific filter hook and possibly replace them with a substitute.

Usage

$bool = remove_action( $tag, $function_to_remove, $priority );

Parameters

$tag
( string ) required – The action hook to which the function to be removed is hooked.
$function_to_remove
( callable ) required – The name of the function which should be removed.
$priority
( int ) optional default: 10 – Optional. The priority of the function. Default 10.

Returns

bool Whether the function is removed.

Source

File name: wordpress/wp-includes/plugin.php
Lines:

1 to 3 of 3
function remove_action( $tag, $function_to_remove, $priority = 10 ) {
  return remove_filter( $tag, $function_to_remove, $priority );
}
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: remove_action
Plugin ref: WordPress
Version: 5.7.1
Sourcefile: wp-includes/plugin.php
File ref: wp-includes/plugin.php
Deprecated?: No
API Letters: A,R

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites