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);
Remove Gutenberg CSS
//Remove Gutenberg Block Library CSS from loading on the frontend function smartwp_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style(…
Stop Lazy Load
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
Ensure Webfont is Loaded
add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { return 'swap'; }, 10, 3 );
Remove Google Fonts
add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );
Untitled Snippet
HTML5
Whitelist Callback Functions for use in Theme Elements
Various elements in the Total theme allow you to select a callback function for the output…
Custom Social Share Email Subject
If you wish to modify the email subject text when clicking the social share email icon…
Custom Social Share Email Body
Can be used to modify the default email body (content) when a user clicks the social…
Active Campaign Snippet
footer
Update the author name on published recipes
This code snippet will update the author name for all existing recipes. Just replace New Name…
The commission is only log when the order status is completed
log commission when the order status is completed.
Add vendor id and name to CSV commissions export
Add vendor id and name to CSV commissions export
Set the Payment fields in the Sign Up form as required
Set the Payment fields in the Sign Up form as required - you can remove any…