函数原型
paused_plugins_notice()
函数描述
Renders an admin notice in case some plugins have been paused due to errors.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: wp-admin/includes/plugin.php.
函数源码
function paused_plugins_notice() {
if ( 'plugins.php' === $GLOBALS['pagenow'] ) {
return;
}
if ( ! current_user_can( 'resume_plugins' ) ) {
return;
}
if ( ! isset( $GLOBALS['_paused_plugins'] ) || empty( $GLOBALS['_paused_plugins'] ) ) {
return;
}
printf(
'<div class="notice notice-error"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>',
__( 'One or more plugins failed to load properly.' ),
__( 'You can find more details and make changes on the Plugins screen.' ),
esc_url( admin_url( 'plugins.php?plugin_status=paused' ) ),
__( 'Go to the Plugins screen' )
);
}
源码链接
变更日志
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |

