本文整理汇总了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;
}