Beaver Builder Drafts Utility WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
Provides utilities for Beaver Builder drafts, including scheduling and draft notices
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/zackpyle/bbdraftutility/archive/refs/heads/main.zipBeaver Builder Draft Utility
Provides utilities for Beaver Builder drafts, including scheduling and draft notices
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
Schedule Drafts to Publish
(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.
Hooks for Customizing Beaver Builder Draft Utility
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.
1. bb_draft_utility_enable_scheduling
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.
Example Usage:
/**
* 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
});
2. bb_draft_utility_branding
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.
Example Usage:
/**
* 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
});
3. bb_draft_utility_show_saved_info
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.
Example Usage:
/**
* 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
Releases
5 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.