remove_all_actions

The timeline below displays how wordpress function remove_all_actions has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.8

/**
 * Removes all of the callback functions from an action hook.
 *
 * @since 2.7.0
 *
 * @param string    $hook_name The action to remove callbacks from.
 * @param int|false $priority  Optional. The priority number to remove them from.
 *                             Default false.
 * @return true Always returns true.
 */
function remove_all_actions($hook_name, $priority = false)
{
    return remove_all_filters($hook_name, $priority);
}

WordPress Version: 5.7

/**
 * Remove all of the hooks from an action.
 *
 * @since 2.7.0
 *
 * @param string    $tag      The action to remove hooks from.
 * @param int|false $priority The priority number to remove them from. Default false.
 * @return true True when finished.
 */
function remove_all_actions($tag, $priority = false)
{
    return remove_all_filters($tag, $priority);
}

WordPress Version: 4.3

/**
 * Remove all of the hooks from an action.
 *
 * @since 2.7.0
 *
 * @param string   $tag      The action to remove hooks from.
 * @param int|bool $priority The priority number to remove them from. Default false.
 * @return true True when finished.
 */
function remove_all_actions($tag, $priority = false)
{
    return remove_all_filters($tag, $priority);
}

WordPress Version: 4.0

/**
 * Remove all of the hooks from an action.
 *
 * @since 2.7.0
 *
 * @param string   $tag      The action to remove hooks from.
 * @param int|bool $priority The priority number to remove them from. Default false.
 * @return bool True when finished.
 */
function remove_all_actions($tag, $priority = false)
{
    return remove_all_filters($tag, $priority);
}

WordPress Version: 3.9

/**
 * Remove all of the hooks from an action.
 *
 * @since 2.7.0
 *
 * @param string $tag The action to remove hooks from.
 * @param int $priority The priority number to remove them from.
 * @return bool True when finished.
 */
function remove_all_actions($tag, $priority = false)
{
    return remove_all_filters($tag, $priority);
}

WordPress Version: 3.7

/**
 * Remove all of the hooks from an action.
 *
 * @since 2.7
 *
 * @param string $tag The action to remove hooks from.
 * @param int $priority The priority number to remove them from.
 * @return bool True when finished.
 */
function remove_all_actions($tag, $priority = false)
{
    return remove_all_filters($tag, $priority);
}