Changeset 46801 for trunk/src/wp-includes/class-wp-hook.php
- Timestamp:
- 11/29/2019 09:40:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-hook.php
r46586 r46801 65 65 * @param string $tag The name of the filter to hook the $function_to_add callback to. 66 66 * @param callable $function_to_add The callback to be run when the filter is applied. 67 * @param int $priority The order in which the functions associated with a 68 * particular action are executed. Lower numbers correspond with69 * earlier execution, and functions with the same priority are executed70 * in the order inwhich they were added to the action.67 * @param int $priority The order in which the functions associated with a particular action 68 * are executed. Lower numbers correspond with earlier execution, 69 * and functions with the same priority are executed in the order 70 * in which they were added to the action. 71 71 * @param int $accepted_args The number of arguments the function accepts. 72 72 */ 73 73 public function add_filter( $tag, $function_to_add, $priority, $accepted_args ) { 74 $idx = _wp_filter_build_unique_id( $tag, $function_to_add, $priority ); 74 $idx = _wp_filter_build_unique_id( $tag, $function_to_add, $priority ); 75 75 76 $priority_existed = isset( $this->callbacks[ $priority ] ); 76 77 … … 163 164 * @since 4.7.0 164 165 * 165 * @param string $tag The filter hook to which the function to be removed is hooked. Used 166 * for building the callback ID when SPL is not available. 166 * @param string $tag The filter hook to which the function to be removed is hooked. 167 167 * @param callable $function_to_remove The callback to be removed from running when the filter is applied. 168 168 * @param int $priority The exact priority used when adding the original filter callback. … … 190 190 * @since 4.7.0 191 191 * 192 * @param string $tag Optional. The name of the filter hook. Used for building 193 * the callback ID when SPL is not available. Default empty. 192 * @param string $tag Optional. The name of the filter hook. Default empty. 194 193 * @param callable|bool $function_to_check Optional. The callback to check for. Default false. 195 194 * @return bool|int The priority of that hook is returned, or false if the function is not attached.
Note: See TracChangeset
for help on using the changeset viewer.