Last active
August 29, 2015 13:55
-
-
Save trishasalas/8785320 to your computer and use it in GitHub Desktop.
support topic checked by default
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
/* set forum subscription field checked by default */ | |
function my_forum_topic_subscribed_by_default() { | |
echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>'; | |
} | |
add_action('bbp_theme_after_topic_form_subscriptions', 'my_forum_topic_subscribed_by_default'); | |
add_action('bbp_theme_after_reply_form_subscription', 'my_forum_topic_subscribed_by_default'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment