pre_$field

pre_$field

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_$field') is found 3 times:

  • /wp-includes/bookmark.php line 440
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
            $value = esc_attr( $value );
        }
    } elseif ( 'db' === $context ) {
        /** 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 );
  • /wp-includes/post.php line 3022
    3018
    3019
    3020
    3021
    3022
    3023
    3024
    3025
    3026
    3027
    3028
    * @since 2.3.0
     *
     * @param mixed $value Value of the post field.
     */
    $value = apply_filters( "pre_{$field}", $value );
     
    /**
     * Filters the value of a specific field before saving.
     *
     * Only applied to post fields with a name which is prefixed with `post_`.
     *
  • /wp-includes/user.php line 1848
    1844
    1845
    1846
    1847
    1848
    1849
    1850
    1851
    1852
    1853
    1854
        }
    } elseif ( 'db' === $context ) {
        if ( $prefixed ) {
            /** This filter is documented in wp-includes/post.php */
            $value = apply_filters( "pre_{$field}", $value );
        } else {
     
            /**
             * Filters the value of a user field in the 'db' context.
             *
             * The dynamic portion of the hook name, `$field`, refers to the prefixed user