-
Notifications
You must be signed in to change notification settings - Fork 25
Hooks
####wds_page_builder_before_load_parts
Fired before all the template parts are loaded.
Since 1.4
Source: inc/functions.php
####wds_page_builder_after_load_parts
Fired after all the template parts are loaded.
Since 1.4
Source: inc/functions.php
####wds_page_builder_before_load_template
Fired before each template part is loaded.
Since 1.4
Source: inc/functions.php
####wds_page_builder_after_load_template
Fired after each template part is loaded.
Since 1.4
Source: inc/functions.php
##Filters
####wds_page_builder_parts_directory
Overrides the Page Builder template parts directory from the one set on the options page.
Since 1.4
Source: inc/options.php
####wds_page_builder_parts_prefix
Overrides the Page Builder template part prefix from the one set on the options page.
Since 1.4
Source: inc/options.php
####wds_page_builder_post_types
Filters the array of allowed post types that Page Builder can use. Default is all public post types. Uses get_post_types
and requires that post types be returned as objects.
#####Example
/**
* Only allow custom post types
*/
function just_my_post_types( $post_types ) {
return get_post_types( array( '_builtin' => false ), 'objects' );
}
Since 1.4
Source: inc/options.php
More info: get_post_types
####wds_page_builder_options_title
Filters the Page Builder options page title.
Since 1.4
Source: inc/options.php
####page_builder_classes
Filters the array of classes added to each template part.
Since 1.5
Source: inc/template-tags.php
####wds_page_builder_container_class
Filters the main Page Builder container class.
Since 1.5
Source: inc/options.php
####wds_page_builder_wrapper
Filter the wrapper markup.
Note, there's no filter for what the closing markup would look like, so if the container element is being changed, make sure to only change the container by filtering wds_page_builder_container
.
Since 1.5
Source: inc/functions.php
####wds_page_builder_set_part
Filter to change the part slug of a part.
Could be used to allow multiple instances of the same part to be loaded on a page.
Since 1.6
Source inc/functions.php
Still missing something? Let us know if you think this wiki is missing some information or could use some more details! Open an issue in the issue tracker with the information you're looking for and we'll make sure that information gets added!