/** * Checks wether signups are allowed for current blog * * @package WP Idea Stream * @subpackage core/functions * * @since 2.2.0 * * @return bool true if signups are allowed for current site, false otherwise */ function wp_idea_stream_is_signup_allowed_for_current_blog() { $signups_allowed = wp_idea_stream_is_signup_allowed(); if (!is_multisite()) { return $signups_allowed; } return apply_filters('wp_idea_stream_is_signup_allowed_for_current_blog', wp_idea_stream_allow_signups()); }
/** * Does the blog is allowing IdeaStream to manage signups * * @package WP Idea Stream * @subpackage admin/settings * * @since 2.2.0 * * @uses checked() to add a checked attribute if needed * @uses wp_idea_stream_allow_signups() to get the active option * @return string HTML output */ function wp_idea_stream_allow_signups_setting_callback() { ?> <input name="_ideastream_allow_signups" id="_ideastream_allow_signups" type="checkbox" value="1" <?php checked(wp_idea_stream_allow_signups()); ?> /> <label for="_ideastream_allow_signups"><?php esc_html_e('Allow IdeaStream to manage signups for your site', 'wp-idea-stream'); ?> </label> <?php }