首页 WordPress函数大全 is_admin()

is_admin()

2020-05-02 / 5965阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_admin()

Determines whether the current request is for an administrative interface page.

描述

Does not check if the user is an administrator; use current_user_can() for checking roles and capabilities.

For more information> Conditional Tags article in the Theme Developer Handbook.

Return Return

(bool) True if inside WordPress administration interface, false otherwise.

大家谈论
    我的见解