Search results for: admin
Ensure Webfont is Loaded
add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { return 'swap'; }, 10, 3 );
Stop Lazy Load
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
Remove Unused JS
/** * We will Dequeue the jQuery UI script as example. * * Hooked to the…
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(…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
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 WordPress Version Number
add_filter('the_generator', '__return_empty_string');
Allow SVG Files Upload
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types.…
Remove Location Taxonomy
// Add custom Bulk Action to the Pages view function custom_add_bulk_action() { global $post_type; if ($post_type…
WP Simple Pay: Disable Stripe Payment Terms
Disable the automatically generated payment form mandates. NOTE: No recommended. Some payment methods require mandates to…
Change the action's string in the refund section - "View Details"
Change the action's string in the refund section - "View Details"
Change the "Commission" header for the Recent Orders table
Change the "Commission" header for the Recent Orders table using the "wcvendors_recent_order_table_columns" filter hook.
Escaping Data
// instead the _e(), __() or _x() use the escaped version _e('Email Summary', 'duplicator-pro'); // this…