function can_display_jetpack_manage_notice()
{
// never display the notice to users that can't do anything about it anyways
if (!current_user_can('jetpack_manage_modules')) {
return false;
}
// don't display if we are in development more
if (Jetpack::is_development_mode()) {
return false;
}
// don't display if the site is private
if (!Jetpack_Options::get_option('public')) {
return false;
}
/**
* Should the Jetpack Remote Site Management notice be displayed.
*
* @since 3.3.0
*
* @param bool ! self::is_module_active( 'manage' ) Is the Manage module inactive.
*/
return apply_filters('can_display_jetpack_manage_notice', !self::is_module_active('manage'));
}