Skip to content

Commit 569bd9b

Browse files
authored
gpbua-enable-block-editor.php: Migrated from experimental folder.
1 parent e21b59b commit 569bd9b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Better User Activation // Enable Block Editor for Activation Page
4+
* https://gravitywiz.com/documentation/gravity-forms-better-user-activation/
5+
*
6+
* Experimental Snippet 🧪
7+
*/
8+
add_action( 'init', function() {
9+
if ( is_callable( 'gp_better_user_activation' ) ) {
10+
remove_filter( 'use_block_editor_for_post', array( gp_better_user_activation(), 'disable_block_editor_for_activation_page' ), 101 );
11+
}
12+
}, 16 );

0 commit comments

Comments
 (0)