Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
Created August 9, 2022 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maheshwaghmare/7c086cdf0837f5864596945086c603c8 to your computer and use it in GitHub Desktop.
Save maheshwaghmare/7c086cdf0837f5864596945086c603c8 to your computer and use it in GitHub Desktop.
Remove the spaces - See https://wp.me/P4Ams0-9Sn
<?php
if ( ! function_exists( 'prefix_remove_spaces' ) ) :
/**
* Remove spaces
*
* @param array $args Arguments.
* @return array
*
* @see https://wp.me/P4Ams0-9Sn
* @author Mahesh M. Waghmare <mwaghmare7@gmail.com>
*/
function prefix_remove_spaces( $args = array() ) {
$args['remove_spaces'] = false;
return $args;
}
add_filter( 'copy_the_code_localize_vars', 'prefix_remove_spaces' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment