数字化技能提升教程,数字化时代生存宝典

数字化百科 / 产品文档 / WordPress:WPMU Functions

WordPress:WPMU Functions

查看全部产品文档命名空间:WordPress

下面是添加到WPMU中的函数,这些函数组成了WPMU的API:
我们遇到的大多数问题的原因在于软件缺少好的文档。请为每个函数创建一个页面并且使用WPMU类别标记。


  • 函数 add_blog_option ( $id, $key, $value )

  • 函数add_site_option ( $key, $value )

  • 函数add_user_to_blog ( $blog_id, $user_id, $role )

  • 函数create_empty_blog ( $domain, $path, $weblog_title, $site_id = 1 )

  • 函数delete_blog_option ( $id, $key )

  • 函数domain_exists ($domain, $path, $site_id = 1)

  • 函数generate_random_password ()

  • 函数get_active_blog_for_user ( $user_id ) { // 为用户创建活跃的博客- 从原先的博客或者从博客列表中获取

  • 函数get_admin_users_for_domain ( $sitedomain = , $path = )

  • 函数get_blog_count ( $id = 0 )

  • 函数get_blog_details ( $id, $all = true )

  • 函数get_blog_list ( $start = 0, $num = 10, $display = true )

  • 函数get_blog_option ( $blog_id, $setting, $default='na' )

  • 函数get_blog_permalink ( $blog_id, $post_id )

  • 函数get_blog_post ( $blog_id, $post_id )

  • 函数get_blog_status ( $id, $pref )

  • 函数get_blogaddress_by_domain ( $domain, $path )

  • 函数get_blogaddress_by_id ( $blog_id )

  • 函数get_blogaddress_by_name ( $blogname )

  • 函数get_bloginfo ( $blogparam)

  • 函数get_blogs_of_user ( $id, $all = false )

  • 函数get_current_site ()

  • 函数get_current_user_id ()

  • 函数get_last_updated ( $display = false )

  • 函数get_most_active_blogs ( $num = 10, $display = 正确的 )

  • 函数get_site_option ( $key, $default = 错误的, $use_cache = 正确的 )

  • 函数get_sitestats ()

  • 函数get_user_details ( $username )

  • 函数get_user_id_from_string ( $string )

  • 函数insert_blog ($domain, $path, $site_id)

  • 函数install_blog ($blog_id, $blog_title = )

  • 函数install_blog_defaults ($blog_id, $user_id)

  • 函数is_archived ( $id )

  • 函数is_blog_user ( $blog_id = 0 )

  • 函数is_email_address_unsafe ( $user_email )

  • 函数is_site_admin ( $user_login = false )

  • 函数is_user_member_of_blog ( $user_id, $blog_id = 0 )

  • 函数load_muplugin_textdomain ($domain, $path = false)

  • 函数refresh_blog_details ( $id )

  • 函数remove_user_from_blog ($user_id, $blog_id = )

  • 函数restore_current_blog ()

  • 函数switch_to_blog ( $new_blog )

  • 函数update_archived ( $id, $archived )

  • 函数update_blog_option ( $id, $key, $value, $refresh = true )

  • 函数update_blog_status ( $id, $pref, $value, $refresh = 1 )

  • 函数update_site_option ( $key, $value )

  • 函数validate_email ( $email, $check_domain = true)

  • 函数wpmu_activate_signup ($key)

  • 函数wpmu_admin_do_redirect ( $url = )

  • 函数wpmu_admin_redirect_add_updated_param ( $url = )

  • 函数wpmu_admin_redirect_url ()

  • 函数wpmu_checkAvailableSpace ($action)

  • 函数wpmu_create_blog ($domain, $path, $title, $user_id, $meta = , $site_id = 1)

  • 函数wpmu_create_user ( $user_name, $password, $email)

  • 函数wpmu_signup_blog ($domain, $path, $title, $user, $user_email, $meta = )

  • 函数wpmu_signup_blog_notification ($domain, $path, $title, $user, $user_email, $key, $meta = )

  • 函数wpmu_signup_user ($user, $user_email, $meta = )

  • 函数wpmu_signup_user_notification ($user, $user_email, $key, $meta = )

  • 函数wpmu_update_blogs_date ()

  • 函数wpmu_validate_blog_signup ($blog_id, $blog_title, $user = )

  • 函数wpmu_validate_user_signup ($user_name, $user_email)

  • 函数wpmu_welcome_notification ($blog_id, $user_id, $password, $title, $meta = )

  • 函数wpmu_welcome_user_notification ($user_id, $password, $meta = )