Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: {$field}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3128                 *
3129                 * @since 2.3.0
3130                 *
3131                 * @param mixed  $value   Value of the prefixed post field.
3132                 * @param int    $post_id Post ID.
3133                 * @param string $context Context for how to sanitize the field.
3134                 *                        Accepts 'raw', 'edit', 'db', 'display',
3135                 *                        'attribute', or 'js'. Default 'display'.
3136                 */
3137                $value = apply_filters( "{$field}", $value, $post_id, $context );
3138           } else {
3139                /**
3140                 * Filters the value of a specific post field for display.
3141                 *
3142                 * Only applied to post fields name which is *not* prefixed with `post_`.
3143                 *
3144                 * The dynamic portion of the hook name, `$field`, refers to the post
3145                 * field name. Possible filter names include:
3146                 *