- Timestamp:
- 09/18/2023 01:17:39 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r56586 r56611 1169 1169 } 1170 1170 1171 get_inline_data( $post ); 1171 /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ 1172 $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); 1173 1174 if ( $quick_edit_enabled ) { 1175 get_inline_data( $post ); 1176 } 1172 1177 } 1173 1178 … … 1476 1481 ); 1477 1482 1478 if ( 'wp_block' !== $post->post_type ) { 1483 /** 1484 * Filters whether Quick Edit should be enabled for the given post type. 1485 * 1486 * @since 6.4.0 1487 * 1488 * @param bool $enable Whether to enable the Quick Edit functionality. Default true. 1489 * @param string $post_type Post type name. 1490 */ 1491 $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); 1492 1493 if ( $quick_edit_enabled && 'wp_block' !== $post->post_type ) { 1479 1494 $actions['inline hide-if-no-js'] = sprintf( 1480 1495 '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
Note: See TracChangeset
for help on using the changeset viewer.