Created
April 21, 2023 15:07
-
-
Save DumahX/f1b589a850a1f2d2d5d36ff4e97b5f67 to your computer and use it in GitHub Desktop.
Default "Parameter Forwarding" option to Enabled for new pretty links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_footer', function() { | |
$screen = get_current_screen(); | |
if ( 'pretty-link' == $screen->id ) { | |
?> | |
<script type="text/javascript"> | |
jQuery( document ).ready( function() { | |
jQuery( '#param_forwarding' ).prop( "checked", true ); | |
} ); | |
</script> | |
<?php | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment