Created
November 6, 2019 17:42
-
-
Save fastlinemedia/f666b6ddf42ab17f35c26406590937e3 to your computer and use it in GitHub Desktop.
Add a custom query option to the Beaver Builder loop settings.
This file contains 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 | |
add_filter( 'fl_builder_render_settings_field', function( $field, $name, $setting ) { | |
if ( 'data_source' === $name ) { | |
$field['options']['my_option'] = __( 'My Option' ); | |
} | |
return $field; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment