{$field}

{$field}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/bookmark.php line 443
    		/** This filter is documented in wp-includes/post.php */
    		$value = apply_filters( "pre_{$field}", $value );
    	} else {
    		/** This filter is documented in wp-includes/post.php */
    		$value = apply_filters( "{$field}", $value, $bookmark_id, $context );
    
    		if ( 'attribute' === $context ) {
    			$value = esc_attr( $value );
    		} elseif ( 'js' === $context ) {
    			$value = esc_js( $value );
    		}
    
  • /wp-includes/post.php line 2973
    			 * @param string $context Context for how to sanitize the field.
    			 *                        Accepts 'raw', 'edit', 'db', 'display',
    			 *                        'attribute', or 'js'. Default 'display'.
    			 */
    			$value = apply_filters( "{$field}", $value, $post_id, $context );
    		} else {
    			$value = apply_filters( "post_{$field}", $value, $post_id, $context );
    		}
    
    		if ( 'attribute' === $context ) {
    			$value = esc_attr( $value );
    
  • /wp-includes/user.php line 1822
    		// Use display filters by default.
    		if ( $prefixed ) {
    
    			/** This filter is documented in wp-includes/post.php */
    			$value = apply_filters( "{$field}", $value, $user_id, $context );
    		} else {
    
    			/**
    			 * Filters the value of a user field in a standard context.
    			 *
    			 * The dynamic portion of the hook name, `$field`, refers to the prefixed user
    

See this hook used in plugins: