Created
February 29, 2024 10:27
-
-
Save KaineLabs/99ac03957eb3c33a00088609c206d41c to your computer and use it in GitHub Desktop.
Youzify - Set Default Privacy Options Posting Form
This file contains 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 | |
function yzc_set_default_privacy_in_dropdown() { ?> | |
<script type="text/javascript"> | |
jQuery( 'div.youzify-privacy-tool option[value="members"]' ).attr( 'selected', true ); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'yzc_set_default_privacy_in_dropdown' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment