WPDev.one
Core Function
View Source on Trac ↗

_wp_filter_build_unique_id()

_wp_filter_build_unique_id( mixed $hook_name, mixed $callback, mixed $priority )

Builds a unique string ID for a hook callback function.

Parameters 3 required

Name / Type Description
$hook_name
string

Unused. The name of the filter to build ID for.

Required
mixed

(callable | string | array) $callback The callback to generate ID for. The callback may or may not exist.

Required
int

$priority Unused. The order in which the functions associated with a particular action are executed.

Required

Return Value

(string)
Unique function ID for usage as array key.

Function Information

Since Version
2.2.3
Source File
wp-includes/plugin.php
Advertisement