Location: everywhere
Google dSense Snippet
google.com, pub-9217976203305712, DIRECT, f08c47fec0942fa0Continue reading
Allow SVG Files Upload (copy)
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
Set Header Menu as “Custom”
add_filter( ‘totaltheme/header/menu/is_custom’, ‘__return_true’ );Continue reading
Remove the Page Title from the Page Header
add_filter( ‘totaltheme/page/header/has_title’, ‘__return_false’ );Continue reading
Custom Social Share Email Body
add_filter( ‘wpex_social_share_data_email_body’, function( $body ) { return ‘My custom email body text’; } );Continue reading
Custom Social Share Email Subject
add_filter( ‘wpex_social_share_data_email_subject’, function() { return ‘My custom subject’; } );Continue reading
Add Custom Dynamic Variables
add_filter( ‘totaltheme/replace_vars/vars’, function( $vars ) { // Add a new {{my_custom_var}} custom variable. $vars[‘my_custom_var’] = ‘My variable value’; return $vars; } );Continue reading
Whitelist Callback Functions for use in Theme Elements
define( ‘VCEX_CALLBACK_FUNCTION_WHITELIST’, [ ‘my_custom_function_name_1’, ‘my_custom_function_name_2’, ‘my_custom_function_name_3’, ] );Continue reading
Remove HTTPS Notification New
add_action(‘admin_head’, ‘my_custom_admin_css’); function my_custom_admin_css() { echo ‘ ‘; }Continue reading