Skip to content

Commit

Permalink
Revert admin_init
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Dec 18, 2024
1 parent f7c6d87 commit f091fd4
Showing 1 changed file with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@
* See: p1734525664059729-slack-C02FMH4G8
* See: https://github.com/WordPress/gutenberg/issues/68053#issuecomment-2550730705
*/
add_action(
'admin_init',
function () {
add_filter(
'register_post_type_args',
function ( $args ) {
unset( $args['default_rendering_mode'] );
return $args;
},
20
);
}
add_filter(
'register_post_type_args',
function ( $args ) {
unset( $args['default_rendering_mode'] );
return $args;
},
20
);

0 comments on commit f091fd4

Please sign in to comment.