Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kellenmace/ec0399884aa77c723ec396a854d37d61 to your computer and use it in GitHub Desktop.
Save kellenmace/ec0399884aa77c723ec396a854d37d61 to your computer and use it in GitHub Desktop.
<?php
function test_get_beaver_builder_module_list() {
$bb_module_list = new KM_Beaver_Builder_Module_List();
// Get a list of the BB modules on the current page.
$current_page_modules_list = $bb_module_list->get();
// Get a list of the BB modules on the page with a post ID of '123'.
$page_123_modules_list = $bb_module_list->get( 123 );
// Additional code.
}
add_action( 'wp', 'test_get_beaver_builder_module_list' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment