Terry Arthur Consulting

MainWP useful code snippets

Like/ Share

Table of Contents

White label your WPRocket:

on child site in wp-config.php add –

define ('WP_ROCKET_WHITE_LABEL_ACCOUNT', true);

Enable SVG support in WordPress

function_enable_svg_upload( $mimes ) { if ( !current_user_can( 'administrator' ) ) { return $mimes; } $mimes['svg'] = 'image/svg+xml'; $mimes['svgz'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'enable_svg_upload');

× Need help NOW?