WP_Hook::resort_active_iterations

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Handles resetting callback priority keys mid-iteration.

Syntax

WP_Hook::resort_active_iterations( bool|int $new_priority = false, bool $priority_existed = false )

ParametersParameters

$new_priority

(bool|int) (Optional) The priority of the new filter being added. Default false, for no priority being added.

Default value: false

$priority_existed

(bool) (Optional) Flag for whether the priority already existed before the new filter was added.

Default value: false

SourceSource

File: wp-includes/class-wp-hook.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top