Created
June 1, 2023 16:19
-
-
Save zackeryfretty/9188f192193318ca61537a04a75c1755 to your computer and use it in GitHub Desktop.
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
function zf_set_custom_width_on_posts_bb( $defaults, $form_type ) { | |
if ( get_post_type( get_the_ID() ) == 'post' ) { | |
if( $form_type == 'row' ) { | |
$defaults->max_content_width = '800'; | |
} | |
} | |
return $defaults; | |
} | |
add_filter( 'fl_builder_settings_form_defaults', 'zf_set_custom_width_on_posts_bb', 100, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment