post_type !== bp_get_email_post_type() ) {
return;
}
bp_core_add_admin_notice(
sprintf(
// Translators: %s is the url to the BuddyPress codex page about BP Email tokens.
__( 'Phrases wrapped in braces {{ }} are email tokens. Learn about tokens on the BuddyPress Codex.', 'buddypress' ),
esc_url( 'https://codex.buddypress.org/emails/email-tokens/' )
),
'error'
);
}
/**
* Handle save/update of screen options for the Activity component admin screen.
*
* @since 1.6.0
* @deprecated 14.0.0
*
* @param string $value Will always be false unless another plugin filters it first.
* @param string $option Screen option name.
* @param string $new_value Screen option form value.
* @return string|int Option value. False to abandon update.
*/
function bp_activity_admin_screen_options( $value, $option, $new_value ) {
_deprecated_function( __FUNCTION__, '14.0.0', 'bp_admin_set_screen_options' );
return bp_admin_set_screen_options( $value, $option, $new_value );
}
/**
* Handle save/update of screen options for the Groups component admin screen.
*
* @since 1.7.0
* @deprecated 14.0.0
*
* @param string $value Will always be false unless another plugin filters it first.
* @param string $option Screen option name.
* @param string $new_value Screen option form value.
* @return string|int Option value. False to abandon update.
*/
function bp_groups_admin_screen_options( $value, $option, $new_value ) {
_deprecated_function( __FUNCTION__, '14.0.0', 'bp_admin_set_screen_options' );
return bp_admin_set_screen_options( $value, $option, $new_value );
}