edit_$field

edit_$field

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

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

  • /wp-includes/bookmark.php line 431
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    }
     
    if ( 'edit' === $context ) {
        /** This filter is documented in wp-includes/post.php */
        $value = apply_filters( "edit_{$field}", $value, $bookmark_id );
     
        if ( 'link_notes' === $field ) {
            $value = esc_html( $value ); // textarea_escaped
        } else {
            $value = esc_attr( $value );
        }
  • /wp-includes/post.php line 2924
    2920
    2921
    2922
    2923
    2924
    2925
    2926
    2927
    2928
    2929
    2930
    *
     * @param mixed $value   Value of the post field.
     * @param int   $post_id Post ID.
     */
    $value = apply_filters( "edit_{$field}", $value, $post_id );
     
    /**
     * Filters the value of a specific post field to edit.
     *
     * Only applied to post fields with a name which is prefixed with `post_`.
     *
  • /wp-includes/user.php line 1823
    1819
    1820
    1821
    1822
    1823
    1824
    1825
    1826
    1827
    1828
    1829
    if ( 'edit' === $context ) {
        if ( $prefixed ) {
     
            /** This filter is documented in wp-includes/post.php */
            $value = apply_filters( "edit_{$field}", $value, $user_id );
        } else {
     
            /**
             * Filters a user field value in the 'edit' context.
             *
             * The dynamic portion of the hook name, `$field`, refers to the prefixed user