Provides utilities for Beaver Builder drafts, including scheduling and draft notices
You will be notified that there is a saved Beaver Builder draft in the following ways:
- A modal will pop up when you open Beaver Builder:
- In the post list it will say Saved Draft:
- In the post's edit screen, it will display this warning:
(Respects white label naming)
- The green Beaver Builder status dot will be yellow instead of green in the row actions
and in the admin bar
(See hooks below if you want to disable this feature)
You can click on the Saved Draft link from the post list to bring up a modal to schedule a date/time for your draft to go live. You can also unschedule and delete drafts from that modal as well.
(Respects white label naming)
After you schedule a draft, a calendar icon will appear next to the Saved Draft link. The scheduled date/time will appear in the modal and when you hover over the calendar icon.
The Beaver Builder Draft Utility plugin provides several hooks that allow you to customize its behavior. Below are the available hooks and instructions on how to use them.
This filter allows you to disable the scheduling feature for drafts. By default, scheduling is enabled, but you can override this behavior by returning false
.
/**
* Disable the scheduling feature for Beaver Builder drafts.
*
* @param bool $enable_scheduling The current state of the scheduling feature.
* @return bool False to disable scheduling.
*/
add_filter( 'bb_draft_utility_enable_scheduling', function( $enable_scheduling ) {
return false; // Disable draft scheduling feature
});
This filter allows you to override the default branding name for Beaver Builder.
- If have the agency version of Beaver Builder, this plugin will respect your white label naming.
- If you are white labeling it in a different way, you can change the builder name using this hook since we dynamically add the name with javascript in some places where php text replacements or translations would not apply.
/**
* Override the branding for Beaver Builder drafts.
*
* @param string $branding The default branding name.
* @return string The customized branding name.
*/
add_filter( 'bb_draft_utility_branding', function( $branding ) {
return 'Awesome Page Builder'; // Replace with your branding
});
This filter determines whether to show the draft author and date saved information in the modals. By default, this information is shown, but you can hide it if needed by returning false
.
/**
* Hide the "Draft saved by" and "on" information.
*
* @param bool $show_saved_info Whether to display the saved information.
* @return bool False to hide the saved information.
*/
add_filter( 'bb_draft_utility_show_saved_info', function( $show_saved_info ) {
return false; // Hide the saved info
});
Project inspired by @pross's gist