関数 current_filter()
current_filter()
| /** * Retrieve the name of the current filter or action. * * @since 2.5.0 * * @return string Hook name of the current filter or action. */ function current_filter() { global $wp_current_filter; return end( $wp_current_filter ); } |
- 関数