current_action(): string In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Retrieves the name of the current action hook. Return string Hook name of the current action. Source function current_action() { return current_filter(); } View all references View on Trac View on GitHub Related UsesDescriptioncurrent_filter()wp-includes/plugin.phpRetrieves the name of the current filter hook. Used byDescriptionWP_Block_Patterns_Registry::register()wp-includes/class-wp-block-patterns-registry.phpRegisters a block pattern. WP_Block_Pattern_Categories_Registry::register()wp-includes/class-wp-block-pattern-categories-registry.phpRegisters a pattern category. rest_cookie_collect_status()wp-includes/rest-api.phpCollects cookie authentication status. switch_theme()wp-includes/theme.phpSwitches the theme. Changelog VersionDescription3.9.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.