post_{$field}

post_{$field}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('post_{$field}') is found 1 times:

  • /wp-includes/post.php line 3164
    3160
    3161
    3162
    3163
    3164
    3165
    3166
    3167
    3168
    3169
    3170
         * @param string $context Context for how to sanitize the field.
         *                        Accepts 'raw', 'edit', 'db', 'display',
         *                        'attribute', or 'js'. Default 'display'.
         */
        $value = apply_filters( "post_{$field}", $value, $post_id, $context );
    }
     
    if ( 'attribute' === $context ) {
        $value = esc_attr( $value );
    } elseif ( 'js' === $context ) {
        $value = esc_js( $value );