|
|
由 Nicolena 于 星期三, 2009/06/17 - 09:07 发表
|
其他函数
这些函数在formatting.php,functions.php,bookmarks.php,cron.php,110n.php,user.php,pluggable.php中。
时间/日期函数
序列化函数
选项函数
XMLRPC函数
本地化函数参见翻译WordPress
Cron(进程)相关函数
其它函数
Shortcode API(短代码)相关函数参见其页面。
类
下面的类由WordPress开发人员创建,存放在capabilities.php,classes.php,class- snoopy.php,locale.php,query.php,rewrite.php,script-loader.php,wp-db.php文 件中:
- WP —— 常规请求处理
- WP_Ajax_Response —— AJAX处理
- WP_Object_Cache (之 前为WP_Cache)—— 对象缓存(函数 wp_cache_add, wp_cache_close, wp_cache_delete, wp_cache_flush, wp_cache_get, wp_cache_init, wp_cache_replace, wp_cache_set)
- WP_Error —— 出错处理(函数is_wp_error)
- WP_Locale —— 日期和时间区域设置
- WP_Query -解析请求并进行操作,获取日志 (函数 get_query_var, query_posts, have_posts, in_the_loop, rewind_posts, the_post, wp_old_slug_redirect, setup_postdata,以及 条件标签 is_*)
- WP_Rewrite -改写规则 (函数 add_rewrite_rule, add_rewrite_tag, add_feed, add_rewrite_endpoint, url_to_postid)
- WP_Roles, WP_Role, WP_User - 用户及其权限- map_meta_cap, current_user_can, get_role, add_role, remove_role
- WP_Scripts - 载入Javasript(函数 wp_print_scripts, wp_register_script, wp_deregister_script wp_enqueue_script)
- WP_Styles - CSS 样式表 (函数 wp_print_styles, wp_register_style, wp_deregister_style, wp_enqueue_style )
- 显示树形数据 - Walker, Walker_Page, Walker_PageDropdown, Walker_Category, Walker_CategoryDropdown
- wpdb - 数据库接口
下面的类由非WordPress开发者创建,存放在class-IXP.php,class-pop3.php,class-snoopy.php,gettext.php,rss.php,streams.php文件中:
- IXR - XML-RPC Classes,包括 IXR_Value, IXR_Message, IXR_Server, IXR_IntrospectionServer, IXR_Request, IXR_Client, IXR_ClientMulticall, IXR_Error, IXR_Date, IXR_Base64
- Snoopy - HTTP 客户端
- gettext_reader (PHP-gettext的一部分) - 本地化类
- RSS Classes (MagpieRSS 和 RSSCache) (函数 fetch_rss, is_info, is_success, is_redirect, is_error, is_client_error, is_server_error, parse_w3cdtf, wp_rss, get_rss)
- POP3: SquirrelMail包装器
- StreamReader类, StringReader类, FileReader类, CachedFileReader类
官方及非官方参考资料
|
|