current_action

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

WordPress Version: 5.8

/**
 * Retrieves the name of the current action hook.
 *
 * @since 3.9.0
 *
 * @return string Hook name of the current action.
 */
function current_action()
{
    return current_filter();
}

WordPress Version: 4.1

/**
 * Retrieve the name of the current action.
 *
 * @since 3.9.0
 *
 * @return string Hook name of the current action.
 */
function current_action()
{
    return current_filter();
}

WordPress Version: 3.9

/**
 * Retrieve the name of the current action.
 *
 * @since 3.9.0
 *
 * @uses current_filter()
 *
 * @return string Hook name of the current action.
 */
function current_action()
{
    return current_filter();
}