WP hooks navigation: Home/browse • Actions index • Filters index
Some hooks have variables in their names. For example, pre_${taxonomy}_$field
and admin_head-
both have variable names. In general, any hook that ends (or begins) with -
or _
, or contains a $
, has a variable name. Since the syntax with which these variables are defined may change from version to version, this page may think that a hook is deprecated (or new) even if it is not. You can usually catch this sort of thing by comparing this hook to the list of "related hooks" below.
This is a variable hook. Because its name contains some variables, this hook might actually refer to several different possible hooks.
This variable hook replaces the following non-variable hooks found in earlier versions of WP. You may want to read up on these older hooks to get a better idea of what this variable hook can do.
Replaced Hook | Version when Changed | Information about Hook |
---|---|---|
get_category | 2.3 | Applied to the category information that the get_category function looks up, which is basically an array of all the fields in WordPress's category table for a particular category ID. Sources: [1] and [2] |
This database has information for all major versions from WP 1.2.1 through 6.2.
Version | File | Line | Type | |
---|---|---|---|---|
2.3 | wp-includes/taxonomy.php | 266 | View in context | filter |
2.5 | wp-includes/taxonomy.php | 304 | View in context | filter |
2.6 | wp-includes/taxonomy.php | 318 | View in context | filter |
2.7 | wp-includes/taxonomy.php | 326 | View in context | filter |
2.8 | wp-includes/taxonomy.php | 329 | View in context | filter |
2.9 | wp-includes/taxonomy.php | 332 | View in context | filter |
3.0 | wp-includes/taxonomy.php | 535 | View in context | filter |
3.0 | wp-includes/taxonomy.php | 604 | View in context | filter |
3.1 | wp-includes/taxonomy.php | 831 | View in context | filter |
3.1 | wp-includes/taxonomy.php | 900 | View in context | filter |
3.2 | wp-includes/taxonomy.php | 863 | View in context | filter |
3.2 | wp-includes/taxonomy.php | 935 | View in context | filter |
3.3 | wp-includes/taxonomy.php | 866 | View in context | filter |
3.3 | wp-includes/taxonomy.php | 938 | View in context | filter |
3.4 | wp-includes/taxonomy.php | 879 | View in context | filter |
3.4 | wp-includes/taxonomy.php | 951 | View in context | filter |
3.5 | wp-includes/taxonomy.php | 901 | View in context | filter |
3.5 | wp-includes/taxonomy.php | 973 | View in context | filter |
3.6 | wp-includes/taxonomy.php | 907 | View in context | filter |
3.6 | wp-includes/taxonomy.php | 979 | View in context | filter |
3.7 | wp-includes/taxonomy.php | 962 | View in context | filter |
3.7 | wp-includes/taxonomy.php | 1037 | View in context | filter |
3.8 | wp-includes/taxonomy.php | 964 | View in context | filter |
3.8 | wp-includes/taxonomy.php | 1039 | View in context | filter |
3.9 | wp-includes/taxonomy.php | 987 | View in context | filter |
3.9 | wp-includes/taxonomy.php | 1063 | View in context | filter |
4.0 | wp-includes/taxonomy.php | 1002 | View in context | filter |
4.0 | wp-includes/taxonomy.php | 1078 | View in context | filter |
4.1 | wp-includes/taxonomy.php | 1345 | View in context | filter |
4.1 | wp-includes/taxonomy.php | 1420 | View in context | filter |
4.2 | wp-includes/taxonomy.php | 1364 | View in context | filter |
4.2 | wp-includes/taxonomy.php | 1439 | View in context | filter |
4.3 | wp-includes/taxonomy.php | 1397 | View in context | filter |
4.3 | wp-includes/taxonomy.php | 1475 | View in context | filter |
4.4 | wp-includes/taxonomy.php | 799 | View in context | filter |
4.5 | wp-includes/taxonomy.php | 874 | View in context | filter |
4.6 | wp-includes/taxonomy.php | 874 | View in context | filter |
4.7 | wp-includes/taxonomy.php | 775 | View in context | filter |
4.8 | wp-includes/taxonomy.php | 775 | View in context | filter |
4.9 | wp-includes/taxonomy.php | 797 | View in context | filter |
5.0 | wp-includes/taxonomy.php | 805 | View in context | filter |
5.1 | wp-includes/taxonomy.php | 869 | View in context | filter |
5.2 | wp-includes/taxonomy.php | 869 | View in context | filter |
5.3 | wp-includes/taxonomy.php | 870 | View in context | filter |
5.4 | wp-includes/taxonomy.php | 873 | View in context | filter |
5.5 | wp-includes/taxonomy.php | 909 | View in context | filter |
5.6 | wp-includes/taxonomy.php | 912 | View in context | filter |
5.7 | wp-includes/taxonomy.php | 919 | View in context | filter |
5.8 | wp-includes/taxonomy.php | 957 | View in context | filter |
5.9 | wp-includes/taxonomy.php | 1015 | View in context | filter |
6.0 | wp-includes/taxonomy.php | 994 | View in context | filter |
6.1 | wp-includes/taxonomy.php | 990 | View in context | filter |
6.2 | wp-includes/taxonomy.php | 989 | View in context | filter |
We find related hooks using word stems. get_{$taxonomy} has 1 significant word stem(s): taxonomy
. Note that some of the hooks below may not appear in all versions of WP.