quick_edit_enabled_for_post_type

quick_edit_enabled_for_post_type

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('quick_edit_enabled_for_post_type') is found 2 times:

  • /wp-admin/includes/class-wp-posts-list-table.php line 1177
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
            }
        }
     
        /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
        $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type );
     
        if ( $quick_edit_enabled ) {
            get_inline_data( $post );
        }
    }
  • /wp-admin/includes/class-wp-posts-list-table.php line 1503
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    *
     * @param bool   $enable    Whether to enable the Quick Edit functionality. Default true.
     * @param string $post_type Post type name.
     */
    $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type );
     
    if ( $quick_edit_enabled && 'wp_block' !== $post->post_type ) {
        $actions['inline hide-if-no-js'] = sprintf(
            '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
            /* translators: %s: Post title. */
            esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),