Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created February 29, 2024 10:27
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 KaineLabs/99ac03957eb3c33a00088609c206d41c to your computer and use it in GitHub Desktop.
Save KaineLabs/99ac03957eb3c33a00088609c206d41c to your computer and use it in GitHub Desktop.
Youzify - Set Default Privacy Options Posting Form
<?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