Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
Created July 26, 2022 20:44
Show Gist options
  • Save maheshwaghmare/5db797bbbc26808c1854c3dd3707f9e3 to your computer and use it in GitHub Desktop.
Save maheshwaghmare/5db797bbbc26808c1854c3dd3707f9e3 to your computer and use it in GitHub Desktop.
After Copy Redirect to Page (Copy Anything to Clipboard) - See https://wp.me/P4Ams0-aAq
<?php
if ( ! function_exists( 'prefix_copy_the_code_localize_vars' ) ) :
/**
* Localize vars.
*
* @return array
*/
function prefix_copy_the_code_localize_vars( $args = array() ) {
// Redirect to page url.
$args['redirect_url'] = 'https://maheshwaghmare.com/';
return $args;
}
add_filter( 'copy_the_code_localize_vars', 'prefix_copy_the_code_localize_vars' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment