Resetting the Vendor & Pending Vendor Roles
add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2); function redo_roles() { remove_role( 'pending_vendor' ); add_role( 'pending_vendor', __( 'Pending Vendor', 'wcvendors'…
Disable Gutenberg Editor (use Classic Editor)
add_filter('gutenberg_can_edit_post', '__return_false', 5); add_filter('use_block_editor_for_post', '__return_false', 5);
Set the ranges for Calendar View | Display Eventbrite Events
The following code snippet filters the valid ranges for the next/prev keys of the calendar views…
WordPress Content Filter: Removing Tags for Enhanced Display Control
The purpose of this code snippet is to filter out tags and their contents from the…
create_folder_and_upload_file
Creating a folder directly inside the WordPress Media Library through code requires understanding that the WordPress…
Title
Describe
Untitled Snippet
name: Update lists on: schedule: - cron: '0 0,12 * * *' # At 00:00 and…
Allow SVG Files Upload (copy)
Add support for SVG files to be uploaded in WordPress media.
MemberPress: Remove the Pause link for specific membership
By default, if pausing/resuming subscriptions is enabled for members, the Pause option will be available for…