Plugin action reference
Plugin hooks are now auto-generated from the code at https://hooks.wpbeaverbuilder.com/bb-plugin/. Some of the basic actions listed on that page are documented here.
fl_ajax_after_*
This action lets you hook into after one of the builder’s front-end AJAX actions has run. For example, the action for save_settings would be fl_ajax_after_save_settings
.
See the classes/class-fl-builder-ajax.php file for a complete list of core AJAX actions that can be appended to the fl_ajax_after_*
action.
function my_ajax_after_save_settings( $args ) { // Logic that should run after the AJAX action has run. } add_action( 'fl_ajax_after_save_settings', 'my_ajax_after_save_settings' );
fl_ajax_before_*
This action allows you to hook into before one of the builder’s front-end AJAX actions has run. For example, the action for save_settings would be fl_ajax_before_save_settings
.
See the classes/class-fl-builder-ajax.php file for a complete list of core AJAX actions that can be appended to the fl_ajax_before_*
action.
function my_ajax_before_save_settings( $args ) { // Logic that should run after the AJAX action has run. } add_action( 'fl_ajax_before_save_settings', 'my_ajax_before_save_settings' );
fl_builder_after_save_layout
This action allows you to hook into after the data is saved for a layout.
function my_builder_after_save_layout( $post_id, $publish, $data, $settings ) { // Logic that should run after layout data is saved should go here. } add_action( 'fl_builder_after_save_layout', 'my_builder_after_save_layout', 10, 4 );
fl_builder_before_save_layout
This action allows you to hook into before the data is saved for a layout.
function my_builder_before_save_layout( $post_id, $publish, $data, $settings ) { // Logic that should run before layout data is saved should go here. } add_action( 'fl_builder_before_save_layout', 'my_builder_before_save_layout', 10, 4 );