nv_count_admin
——nvPress Functions
播放幻灯片
|
文档首页
文档目录
钩子
add_action
do_action
do_async_action
remove_action
add_filter
apply_filters
apply_async_filters
remove_filter
邮件
nv_mail
send_mail_to_user
send_mail_to_admin
媒体
nv_insert_media
nv_get_media
文章
post_exists
nv_unique_post_slug
nv_insert_post
nv_update_post
nv_delete_post
query_posts
get_post
update_post_meta
get_post_meta
delete_post_meta
nv_set_post_fields
get_the_post_thumbnail_url
add_post_type_support
remove_post_type_support
register_posttype
register_editor_block
get_post_permalink
分类法
register_taxonomy
taxonomy_exists
term_exists
nv_unique_term_slug
get_taxonomies
query_terms
get_terms
nv_insert_term
nv_delete_term
nv_update_term
nv_get_object_terms
nv_set_object_terms
nv_remove_object_terms
update_term_meta
get_term_meta
delete_term_meta
get_term_permalink
add_taxonomy_meta_box
评论
nv_insert_comment
nv_insert_comment
query_comments
delete_comment
nv_set_comments_status
nv_set_comment_fields
update_comment_meta
get_comment_meta
delete_comment_meta
用户
get_user_role
nv_count_admin
nv_insert_user
nv_update_user
nv_delete_user
get_user_by_id
get_user_by_name
get_user_by_email
nv_user_login
nv_create_nonce
nv_revoke_nonce
nv_verify_nonce
get_user_by_nonce
get_user_list
update_user_meta
get_user_meta
delete_user_meta
query_users
配置
get_option
get_options
set_option
delete_option
菜单
add_menu_page
remove_menu_page
add_submenu_page
remove_submenu_page
主题模块
register_theme_modules
unregister_theme_modules
get_registered_theme_modules
导航菜单
register_nav_menus
nv_get_raw_nav_menu
nv_get_nav_menu
nv_save_nav_menu
编辑器
add_meta_box
主题
nv_theme_list
get_theme_path
nv_render_assistant
nv_head
nv_enqueue_head
nv_enqueue_script
nv_enqueue_style
后台
nv_enqueue_admin_head
nv_enqueue_admin_script
nv_enqueue_admin_style
其它
register_rest_route
register_socket_route
register_static_url
错误类型
数据存储
描述
示例:
nv_count_admin()
功能:
获取管理员数量
参数
无
返回
(Number)
管理员数量