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.5.3

apply_filters('quick_edit_enabled_for_post_type') is found 2 times:

  • /wp-admin/includes/class-wp-posts-list-table.php line 1172
    			}
    		}
    
    		/** 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 1491
    			 *
    			 * @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 ) ),