Created
June 6, 2022 18:45
-
-
Save swinggraphics/336c45bfef2dbd3df0a9cfc525961415 to your computer and use it in GitHub Desktop.
Provide clear indication when Beaver Builder is active
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Make BB status obvious */ | |
add_filter( 'display_post_states', 'sg_bb_post_state', 10, 2 ); | |
function sg_bb_post_state( $post_states, $post ) { | |
if ( FLBuilderModel::is_builder_enabled( $post->ID ) ) { | |
$post_states[] = 'Beaver Builder'; | |
} | |
return $post_states; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment