post_{$field}

post_{$field}

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

See hook in core

Displaying hooks found in version: wordpress-6.7

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

  • /wp-includes/post.php line 3164
    			 * @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 );