Welcome, visitor! Log in
 

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 3.5.

Version File Line Type
2.3 wp-includes/bookmark.php 210 View hook in source filter
2.3 wp-includes/post.php 483 View hook in source filter
2.5 wp-includes/bookmark.php 306 View hook in source filter
2.5 wp-includes/post.php 788 View hook in source filter
2.6 wp-includes/bookmark.php 319 View hook in source filter
2.6 wp-includes/post.php 824 View hook in source filter
2.7 wp-includes/bookmark.php 341 View hook in source filter
2.7 wp-includes/post.php 853 View hook in source filter
2.8 wp-includes/bookmark.php 351 View hook in source filter
2.8 wp-includes/post.php 891 View hook in source filter
2.9 wp-includes/bookmark.php 351 View hook in source filter
2.9 wp-includes/post.php 924 View hook in source filter
2.9 wp-includes/user.php 714 View hook in source filter
3.0 wp-includes/bookmark.php 346 View hook in source filter
3.0 wp-includes/post.php 1460 View hook in source filter
3.0 wp-includes/user.php 857 View hook in source filter
3.1 wp-includes/bookmark.php 345 View hook in source filter
3.1 wp-includes/post.php 1687 View hook in source filter
3.1 wp-includes/user.php 1233 View hook in source filter
3.2 wp-includes/bookmark.php 355 View hook in source filter
3.2 wp-includes/post.php 1718 View hook in source filter
3.2 wp-includes/user.php 1236 View hook in source filter
3.3 wp-includes/bookmark.php 358 View hook in source filter
3.3 wp-includes/post.php 1710 View hook in source filter
3.3 wp-includes/user.php 1107 View hook in source filter
3.4 wp-includes/bookmark.php 358 View hook in source filter
3.4 wp-includes/post.php 1767 View hook in source filter
3.4 wp-includes/user.php 1101 View hook in source filter
3.5 wp-includes/bookmark.php 363 View hook in source filter
3.5 wp-includes/post.php 2033 View hook in source filter
3.5 wp-includes/user.php 1132 View hook in source 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.