本文整理匯總了PHP中WPSEO_Utils::is_development_mode方法的典型用法代碼示例。如果您正苦於以下問題:PHP WPSEO_Utils::is_development_mode方法的具體用法?PHP WPSEO_Utils::is_development_mode怎麽用?PHP WPSEO_Utils::is_development_mode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WPSEO_Utils
的用法示例。
在下文中一共展示了WPSEO_Utils::is_development_mode方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: should_show_notice
/**
* Should the notice being given?
*
* @return bool
*/
protected function should_show_notice()
{
// If development note is on or the tagline notice is shown, just don't show this notice.
if (WPSEO_Utils::is_development_mode() || '0' === get_option('blog_public')) {
return false;
}
return WPSEO_Utils::grant_access() && !$this->user_has_dismissed() && !$this->onpage_option->is_indexable();
}
示例2: should_show_notice
/**
* Should the notice being given?
*
* @return bool
*/
protected function should_show_notice()
{
// If development note is on or the tagline notice is shown, just don't show this notice.
if (WPSEO_Utils::is_development_mode() || '0' === get_option('blog_public')) {
return false;
}
return WPSEO_Utils::grant_access() && !$this->user_has_dismissed() && $this->onpage_option->get_status() === WPSEO_OnPage_Option::IS_NOT_INDEXABLE;
}
示例3: should_show_notice
/**
* Should the notice being given?
*
* @return bool
*/
protected function should_show_notice()
{
// If development mode is on or the blog is not public, just don't show this notice.
if (WPSEO_Utils::is_development_mode() || '0' === get_option('blog_public')) {
return false;
}
return $this->onpage_option->get_status() === WPSEO_OnPage_Option::IS_NOT_INDEXABLE;
}