Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
pre_{$field}

Important warning about variable hooks

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.

Former names for pre_{$field}

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
link_description2.3Applied to the link description by the get_links and wp_list_bookmarks functions (as of WordPress 2.2). Sources: [1] and [2]
link_rating2.3Applied to the link rating number by the get_linkrating function. Sources: [1] and [2]
pre_link_description2.3Applied to the link description prior to saving in the database. Sources: [1] and [2]
pre_link_image2.3Applied to the link image prior to saving in the database. Sources: [1] and [2]
pre_link_name2.3Applied to the link name prior to saving in the database. Sources: [1] and [2]
pre_link_notes2.3Applied to the link notes prior to saving in the database. Sources: [1] and [2]
pre_link_rel2.3Applied to the link relation information prior to saving in the database. Sources: [1] and [2]
pre_link_rss2.3Applied to the link RSS URL prior to saving in the database. Sources: [1] and [2]
pre_link_target2.3Applied to the link target information prior to saving in the database. Sources: [1] and [2]
pre_link_url2.3Applied to the link URL prior to saving in the database. Sources: [1] and [2]

WordPress version history for pre_{$field}

This database has information for all major versions from WP 1.2.1 through 6.2.

Version File Line Type
2.3 wp-includes/bookmark.php 210 View in context filter
2.3 wp-includes/post.php 483 View in context filter
2.5 wp-includes/bookmark.php 306 View in context filter
2.5 wp-includes/post.php 788 View in context filter
2.6 wp-includes/bookmark.php 319 View in context filter
2.6 wp-includes/post.php 824 View in context filter
2.7 wp-includes/bookmark.php 341 View in context filter
2.7 wp-includes/post.php 853 View in context filter
2.8 wp-includes/bookmark.php 351 View in context filter
2.8 wp-includes/post.php 891 View in context filter
2.9 wp-includes/bookmark.php 351 View in context filter
2.9 wp-includes/post.php 924 View in context filter
2.9 wp-includes/user.php 714 View in context filter
3.0 wp-includes/bookmark.php 346 View in context filter
3.0 wp-includes/post.php 1460 View in context filter
3.0 wp-includes/user.php 857 View in context filter
3.1 wp-includes/bookmark.php 345 View in context filter
3.1 wp-includes/post.php 1687 View in context filter
3.1 wp-includes/user.php 1233 View in context filter
3.2 wp-includes/bookmark.php 355 View in context filter
3.2 wp-includes/post.php 1718 View in context filter
3.2 wp-includes/user.php 1236 View in context filter
3.3 wp-includes/bookmark.php 358 View in context filter
3.3 wp-includes/post.php 1710 View in context filter
3.3 wp-includes/user.php 1107 View in context filter
3.4 wp-includes/bookmark.php 358 View in context filter
3.4 wp-includes/post.php 1767 View in context filter
3.4 wp-includes/user.php 1101 View in context filter
3.5 wp-includes/bookmark.php 363 View in context filter
3.5 wp-includes/post.php 2033 View in context filter
3.5 wp-includes/user.php 1132 View in context filter
3.6 wp-includes/bookmark.php 363 View in context filter
3.6 wp-includes/post.php 1961 View in context filter
3.6 wp-includes/user.php 1131 View in context filter
3.7 wp-includes/bookmark.php 363 View in context filter
3.7 wp-includes/post.php 2001 View in context filter
3.7 wp-includes/user.php 1152 View in context filter
3.8 wp-includes/bookmark.php 384 View in context filter
3.8 wp-includes/post.php 2005 View in context filter
3.8 wp-includes/user.php 1154 View in context filter
3.9 wp-includes/bookmark.php 384 View in context filter
3.9 wp-includes/post.php 2067 View in context filter
3.9 wp-includes/user.php 1353 View in context filter
4.0 wp-includes/bookmark.php 392 View in context filter
4.0 wp-includes/post.php 2195 View in context filter
4.0 wp-includes/user.php 1457 View in context filter
4.1 wp-includes/bookmark.php 391 View in context filter
4.1 wp-includes/post.php 2195 View in context filter
4.1 wp-includes/user.php 1520 View in context filter
4.2 wp-includes/bookmark.php 391 View in context filter
4.2 wp-includes/post.php 2204 View in context filter
4.2 wp-includes/user.php 1631 View in context filter
4.3 wp-includes/bookmark.php 391 View in context filter
4.3 wp-includes/post.php 2230 View in context filter
4.3 wp-includes/user.php 1670 View in context filter
4.4 wp-includes/bookmark.php 391 View in context filter
4.4 wp-includes/post.php 1974 View in context filter
4.4 wp-includes/user.php 1062 View in context filter
4.5 wp-includes/bookmark.php 391 View in context filter
4.5 wp-includes/post.php 2091 View in context filter
4.5 wp-includes/user.php 1158 View in context filter
4.6 wp-includes/bookmark.php 394 View in context filter
4.6 wp-includes/post.php 1923 View in context filter
4.6 wp-includes/user.php 1179 View in context filter
4.7 wp-includes/bookmark.php 395 View in context filter
4.7 wp-includes/post.php 2017 View in context filter
4.7 wp-includes/user.php 1191 View in context filter
4.8 wp-includes/bookmark.php 395 View in context filter
4.8 wp-includes/post.php 2017 View in context filter
4.8 wp-includes/user.php 1201 View in context filter
4.9 wp-includes/bookmark.php 395 View in context filter
4.9 wp-includes/post.php 2048 View in context filter
4.9 wp-includes/user.php 1212 View in context filter
5.0 wp-includes/bookmark.php 395 View in context filter
5.0 wp-includes/post.php 2207 View in context filter
5.0 wp-includes/user.php 1212 View in context filter
5.1 wp-includes/bookmark.php 422 View in context filter
5.1 wp-includes/post.php 2350 View in context filter
5.1 wp-includes/user.php 1283 View in context filter
5.2 wp-includes/bookmark.php 422 View in context filter
5.2 wp-includes/post.php 2350 View in context filter
5.2 wp-includes/user.php 1280 View in context filter
5.3 wp-includes/bookmark.php 436 View in context filter
5.3 wp-includes/post.php 2431 View in context filter
5.3 wp-includes/user.php 1278 View in context filter
5.4 wp-includes/bookmark.php 436 View in context filter
5.4 wp-includes/post.php 2442 View in context filter
5.4 wp-includes/user.php 1284 View in context filter
5.5 wp-includes/bookmark.php 436 View in context filter
5.5 wp-includes/post.php 2455 View in context filter
5.5 wp-includes/user.php 1298 View in context filter
5.6 wp-includes/bookmark.php 436 View in context filter
5.6 wp-includes/post.php 2467 View in context filter
5.6 wp-includes/user.php 1482 View in context filter
5.7 wp-includes/bookmark.php 436 View in context filter
5.7 wp-includes/post.php 2555 View in context filter
5.7 wp-includes/user.php 1483 View in context filter
5.8 wp-includes/bookmark.php 437 View in context filter
5.8 wp-includes/post.php 2632 View in context filter
5.8 wp-includes/user.php 1489 View in context filter
5.9 wp-includes/bookmark.php 437 View in context filter
5.9 wp-includes/post.php 2833 View in context filter
5.9 wp-includes/user.php 1628 View in context filter
6.0 wp-includes/bookmark.php 437 View in context filter
6.0 wp-includes/post.php 2816 View in context filter
6.0 wp-includes/user.php 1772 View in context filter
6.1 wp-includes/bookmark.php 437 View in context filter
6.1 wp-includes/post.php 2822 View in context filter
6.1 wp-includes/user.php 1788 View in context filter
6.2 wp-includes/bookmark.php 437 View in context filter
6.2 wp-includes/post.php 2824 View in context filter
6.2 wp-includes/user.php 1800 View in context filter

Related Hooks

We find related hooks using word stems. pre_{$field} has 1 significant word stem(s): field. Note that some of the hooks below may not appear in all versions of WP.