WordPress 的代码非常的简单而且优雅,现在我的水平已经到了能够静下心来看 WP 源代码的水平了。首先,wp-admin/index.php 是是相当于后台程序的初步单入口,我在 index.php 文件的最后加入三行代码,
echo '<pre>';
print_r($GLOBALS);
echo '<pre>';
die();
输出 WP 中的全局数组。WordPress 在 PHP 还没有面向对象的时候就已经存在了,内部的钩子都是基于 PHP 中的全局数组这样的简单的思想,弄清楚全局数组 $GLOBALS 基本就明白了 WordPress 的内部结构了。
WordPress 中重要的四个插件函数之一的 do_action () 函数:
function do_action($tag, $arg = '') {
global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;
if ( ! isset($wp_actions) )
$wp_actions = array();
# 如果$wp_actions变量未设置过,则将其定义为数组;
if ( ! isset($wp_actions[$tag]) )
$wp_actions[$tag] = 1;
else
++$wp_actions[$tag];
# 如果$wp_actions[$tag]未设置则将其赋值为1,否则将其值加1;
if ( isset($wp_filter['all']) ) {
$wp_current_filter[] = $tag;
$all_args = func_get_args();
_wp_call_all_hook($all_args);
}
# 跟apply_filters()中的all钩子处理方式完全一样!_wp_call_all_hook()源码分析见上篇文章过滤钩子源码解析;
if ( !isset($wp_filter[$tag]) ) {
if ( isset($wp_filter['all']) )
array_pop($wp_current_filter);
return;
}
# 当前钩子不存在,则直接返回,不再执行以后代码;
if ( !isset($wp_filter['all']) )
$wp_current_filter[] = $tag;
# 将当前钩子设置为$tag;
$args = array();
if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) )
$args[] =& $arg[0];
else
$args[] = $arg;
# do_action()若有传入参数,且为一个数组,该数组仅此一个元素,该元素有值则将$args值设置为引用$arg[0],否则直接赋值;
for ( $a = 2; $a < func_num_args(); $a++ )
$args[] = func_get_arg($a);
# 通过for循环,若do_action()有不只一个传入参数,将这些值赋给数组$args;
if ( !isset( $merged_filters[ $tag ] ) ) {
ksort($wp_filter[$tag]);
$merged_filters[ $tag ] = true;
}
# 跟apply_filter()函数排序代码完全一样!详解见上文;
reset( $wp_filter[ $tag ] );
do {
foreach ( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_['function']) )
call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
} while ( next($wp_filter[$tag]) !== false );
array_pop($wp_current_filter);
}
# 除了少了一行return $value其他跟apply_filters()完全一样!
打印出的全局数组的结果如下:(只是一部分,实际上更加长)
Array
(
[_GET] => Array
(
)
[_POST] => Array
(
)
[_COOKIE] => Array
(
[wordpress_da77b3c753448d5ebb3539e00a8f4c6b] => FeanLau|1497341741|JT10OpeBtus7xaTmWqAI8Etrxjg6hHQwZpAufe8BdWH|2693998721c35b5234e5ae79ff9687402d5686ec03ebd406decd9aaa97bede6e
[wordpress_test_cookie] => WP Cookie check
[wordpress_logged_in_da77b3c753448d5ebb3539e00a8f4c6b] => FeanLau|1497341741|JT10OpeBtus7xaTmWqAI8Etrxjg6hHQwZpAufe8BdWH|5fe10e4bb8d08fdd069019499abdc112d3ec1384f809cf620cd904cff3a30183
[wp-settings-time-1] => 1496133832
[wp-settings-1] =>
)
[_FILES] => Array
(
)
[GLOBALS] => Array
*RECURSION*
[parent_file] => index.php
[screen] => WP_Screen Object
(
[action] =>
[base] => dashboard
[columns:WP_Screen:private] => 0
[id] => dashboard
[in_admin:protected] => site
[is_network] =>
[is_user] =>
[parent_base] => index
[parent_file] => index.php
[post_type] =>
[taxonomy] =>
[_help_tabs:WP_Screen:private] => Array
(
[overview] => Array
(
[title] => Overview
[id] => overview
[content] => <p>Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.</p>
[callback] =>
[priority] => 10
)
[help-navigation] => Array
(
[title] => Navigation
[id] => help-navigation
[content] => <p>The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.</p><p>Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.</p>
[callback] =>
[priority] => 10
)
[help-layout] => Array
(
[title] => Layout
[id] => help-layout
[content] => <p>You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.</p><p><strong>Screen Options</strong> — Use the Screen Options tab to choose which Dashboard boxes to show.</p><p><strong>Drag and Drop</strong> — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.</p><p><strong>Box Controls</strong> — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.</p>
[callback] =>
[priority] => 10
)
[help-content] => Array
(
[title] => Content
[id] => help-content
[content] => <p>The boxes on your Dashboard screen are:</p><p><strong>At A Glance</strong> — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.</p><p><strong>Activity</strong> — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.</p><p><strong>Quick Draft</strong> — Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started.</p><p><strong>WordPress News</strong> — Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>, and popular plugins.</p><p><strong>Welcome</strong> — Shows links for some of the most common tasks when setting up a new site.</p>
[callback] =>
[priority] => 10
)
)
[_help_sidebar:WP_Screen:private] => <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a></p><p><a href="https://wordpress.org/support/">Support Forums</a></p>
[_screen_reader_content:WP_Screen:private] => Array
(
)
[_options:WP_Screen:private] => Array
(
)
[_show_screen_options:WP_Screen:private] => 1
[_screen_settings:WP_Screen:private] =>
)
[classes] => welcome-panel
[option] => 1
[hide] =>
[_SERVER] => Array
(
[SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu)
[REQUEST_URI] => /wp-admin/index.php
[HTTP_HOST] => wordpress.me.com
[HTTP_CONNECTION] => keep-alive
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[HTTP_REFERER] => http://wordpress.me.com/wp-admin/update-core.php
[HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch
[HTTP_ACCEPT_LANGUAGE] => zh-CN,zh;q=0.8
[HTTP_COOKIE] => wordpress_da77b3c753448d5ebb3539e00a8f4c6b=FeanLau%7C1497341741%7CJT10OpeBtus7xaTmWqAI8Etrxjg6hHQwZpAufe8BdWH%7C2693998721c35b5234e5ae79ff9687402d5686ec03ebd406decd9aaa97bede6e; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_da77b3c753448d5ebb3539e00a8f4c6b=FeanLau%7C1497341741%7CJT10OpeBtus7xaTmWqAI8Etrxjg6hHQwZpAufe8BdWH%7C5fe10e4bb8d08fdd069019499abdc112d3ec1384f809cf620cd904cff3a30183; wp-settings-time-1=1496133832
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[SERVER_SIGNATURE] => <address>Apache/2.4.18 (Ubuntu) Server at wordpress.me.com Port 80</address>
[SERVER_NAME] => wordpress.me.com
[SERVER_ADDR] => feanlau.com
[SERVER_PORT] => 80
[REMOTE_ADDR] => feanlau.com
[DOCUMENT_ROOT] => /var/www/wordpress/
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /var/www/wordpress/
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => /var/www/wordpress/wp-admin/index.php
[REMOTE_PORT] => 49028
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[SCRIPT_NAME] => /wp-admin/index.php
[PHP_SELF] => /wp-admin/index.php
[REQUEST_TIME_FLOAT] => 1496133838.287
[REQUEST_TIME] => 1496133838
)
[_REQUEST] => Array
(
)
[wp_db_version] => 38590
[date_format] => F j, Y
[time_format] => g:i a
[pagenow] => index.php
[wp_importers] =>
[hook_suffix] => index.php
[plugin_page] =>
[typenow] =>
[taxnow] =>
[page_hook] =>
[editing] =>
[table_prefix] => wp_
[wp_version] => 4.7.5
[tinymce_version] => 4506-20170408
[required_php_version] => 5.2.4
[required_mysql_version] => 5.0
[wp_local_package] =>
[blog_id] => 1
[wp_filter] => Array
(
[pre_term_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_comment_author_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_target] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_rel] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_display_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_first_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_last_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_nickname] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[term_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_author_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_target] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_rel] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_display_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_first_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_last_name] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_nickname] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_text_field] => Array
(
[function] => sanitize_text_field
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
[30] => Array
(
[_wp_specialchars] => Array
(
[function] => _wp_specialchars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_term_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_notes] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[term_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[wpautop] => Array
(
[function] => wpautop
[accepted_args] => 1
)
[shortcode_unautop] => Array
(
[function] => shortcode_unautop
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_notes] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_text] => WP_Hook Object
(
[callbacks] => Array
(
[9] => Array
(
[make_clickable] => Array
(
[function] => make_clickable
[accepted_args] => 1
)
)
[10] => Array
(
[wp_kses_post] => Array
(
[function] => wp_kses_post
[accepted_args] => 1
)
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
)
[20] => Array
(
[convert_smilies] => Array
(
[function] => convert_smilies
[accepted_args] => 1
)
)
[25] => Array
(
[force_balance_tags] => Array
(
[function] => force_balance_tags
[accepted_args] => 1
)
)
[30] => Array
(
[wpautop] => Array
(
[function] => wpautop
[accepted_args] => 1
)
)
[31] => Array
(
[capital_P_dangit] => Array
(
[function] => capital_P_dangit
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_comment_author_email] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[trim] => Array
(
[function] => trim
[accepted_args] => 1
)
[sanitize_email] => Array
(
[function] => sanitize_email
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_email] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[trim] => Array
(
[function] => trim
[accepted_args] => 1
)
[sanitize_email] => Array
(
[function] => sanitize_email
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_author_email] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_email] => Array
(
[function] => sanitize_email
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_email] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_email] => Array
(
[function] => sanitize_email
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_comment_author_url] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url_raw] => Array
(
[function] => esc_url_raw
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_user_url] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url_raw] => Array
(
[function] => esc_url_raw
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_url] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url_raw] => Array
(
[function] => esc_url_raw
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_image] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url_raw] => Array
(
[function] => esc_url_raw
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_link_rss] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url_raw] => Array
(
[function] => esc_url_raw
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_post_guid] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url_raw] => Array
(
[function] => esc_url_raw
[accepted_args] => 1
)
[wp_filter_kses] => Array
(
[function] => wp_filter_kses
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[user_url] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url] => Array
(
[function] => esc_url
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_url] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url] => Array
(
[function] => esc_url
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_image] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url] => Array
(
[function] => esc_url
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[link_rss] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url] => Array
(
[function] => esc_url
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_url] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url] => Array
(
[function] => esc_url
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[post_guid] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_strip_all_tags] => Array
(
[function] => wp_strip_all_tags
[accepted_args] => 1
)
[esc_url] => Array
(
[function] => esc_url
[accepted_args] => 1
)
[wp_kses_data] => Array
(
[function] => wp_kses_data
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_term_slug] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_title] => Array
(
[function] => sanitize_title
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[wp_insert_post_data] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[_wp_customize_changeset_filter_insert_post_data] => Array
(
[function] => _wp_customize_changeset_filter_insert_post_data
[accepted_args] => 2
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_post_type] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_key] => Array
(
[function] => sanitize_key
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_post_status] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_key] => Array
(
[function] => sanitize_key
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_post_comment_status] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_key] => Array
(
[function] => sanitize_key
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_post_ping_status] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_key] => Array
(
[function] => sanitize_key
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_post_mime_type] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_mime_type] => Array
(
[function] => sanitize_mime_type
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[post_mime_type] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[sanitize_mime_type] => Array
(
[function] => sanitize_mime_type
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[register_meta_args] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[_wp_register_meta_args_whitelist] => Array
(
[function] => _wp_register_meta_args_whitelist
[accepted_args] => 2
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[content_save_pre] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[convert_invalid_entities] => Array
(
[function] => convert_invalid_entities
[accepted_args] => 1
)
)
[50] => Array
(
[balanceTags] => Array
(
[function] => balanceTags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[excerpt_save_pre] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[convert_invalid_entities] => Array
(
[function] => convert_invalid_entities
[accepted_args] => 1
)
)
[50] => Array
(
[balanceTags] => Array
(
[function] => balanceTags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_save_pre] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[convert_invalid_entities] => Array
(
[function] => convert_invalid_entities
[accepted_args] => 1
)
)
[50] => Array
(
[balanceTags] => Array
(
[function] => balanceTags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[pre_comment_content] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[convert_invalid_entities] => Array
(
[function] => convert_invalid_entities
[accepted_args] => 1
)
)
[15] => Array
(
[wp_rel_nofollow] => Array
(
[function] => wp_rel_nofollow
[accepted_args] => 1
)
)
[50] => Array
(
[balanceTags] => Array
(
[function] => balanceTags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_author] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
[0000000058b932ad000000003aa1d545floated_admin_avatar] => Array
(
[function] => Array
(
[0] => WP_Comments_List_Table Object
(
[checkbox] => 1
[pending_count] => Array
(
)
[extra_items] =>
[user_can:WP_Comments_List_Table:private] =>
[items] =>
[_args:protected] => Array
(
[plural] => comments
[singular] => comment
[ajax] => 1
[screen] => WP_Screen Object
(
[action] =>
[base] => dashboard
[columns:WP_Screen:private] => 0
[id] => dashboard
[in_admin:protected] => site
[is_network] =>
[is_user] =>
[parent_base] => index
[parent_file] => index.php
[post_type] =>
[taxonomy] =>
[_help_tabs:WP_Screen:private] => Array
(
[overview] => Array
(
[title] => Overview
[id] => overview
[content] => <p>Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.</p>
[callback] =>
[priority] => 10
)
[help-navigation] => Array
(
[title] => Navigation
[id] => help-navigation
[content] => <p>The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.</p><p>Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.</p>
[callback] =>
[priority] => 10
)
[help-layout] => Array
(
[title] => Layout
[id] => help-layout
[content] => <p>You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.</p><p><strong>Screen Options</strong> — Use the Screen Options tab to choose which Dashboard boxes to show.</p><p><strong>Drag and Drop</strong> — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.</p><p><strong>Box Controls</strong> — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.</p>
[callback] =>
[priority] => 10
)
[help-content] => Array
(
[title] => Content
[id] => help-content
[content] => <p>The boxes on your Dashboard screen are:</p><p><strong>At A Glance</strong> — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.</p><p><strong>Activity</strong> — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.</p><p><strong>Quick Draft</strong> — Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started.</p><p><strong>WordPress News</strong> — Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>, and popular plugins.</p><p><strong>Welcome</strong> — Shows links for some of the most common tasks when setting up a new site.</p>
[callback] =>
[priority] => 10
)
)
[_help_sidebar:WP_Screen:private] => <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a></p><p><a href="https://wordpress.org/support/">Support Forums</a></p>
[_screen_reader_content:WP_Screen:private] => Array
(
)
[_options:WP_Screen:private] => Array
(
)
[_show_screen_options:WP_Screen:private] => 1
[_screen_settings:WP_Screen:private] =>
)
)
[_pagination_args:protected] => Array
(
)
[screen:protected] => WP_Screen Object
(
[action] =>
[base] => dashboard
[columns:WP_Screen:private] => 0
[id] => dashboard
[in_admin:protected] => site
[is_network] =>
[is_user] =>
[parent_base] => index
[parent_file] => index.php
[post_type] =>
[taxonomy] =>
[_help_tabs:WP_Screen:private] => Array
(
[overview] => Array
(
[title] => Overview
[id] => overview
[content] => <p>Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.</p>
[callback] =>
[priority] => 10
)
[help-navigation] => Array
(
[title] => Navigation
[id] => help-navigation
[content] => <p>The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.</p><p>Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.</p>
[callback] =>
[priority] => 10
)
[help-layout] => Array
(
[title] => Layout
[id] => help-layout
[content] => <p>You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.</p><p><strong>Screen Options</strong> — Use the Screen Options tab to choose which Dashboard boxes to show.</p><p><strong>Drag and Drop</strong> — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.</p><p><strong>Box Controls</strong> — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.</p>
[callback] =>
[priority] => 10
)
[help-content] => Array
(
[title] => Content
[id] => help-content
[content] => <p>The boxes on your Dashboard screen are:</p><p><strong>At A Glance</strong> — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.</p><p><strong>Activity</strong> — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.</p><p><strong>Quick Draft</strong> — Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started.</p><p><strong>WordPress News</strong> — Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>, and popular plugins.</p><p><strong>Welcome</strong> — Shows links for some of the most common tasks when setting up a new site.</p>
[callback] =>
[priority] => 10
)
)
[_help_sidebar:WP_Screen:private] => <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a></p><p><a href="https://wordpress.org/support/">Support Forums</a></p>
[_screen_reader_content:WP_Screen:private] => Array
(
)
[_options:WP_Screen:private] => Array
(
)
[_show_screen_options:WP_Screen:private] => 1
[_screen_settings:WP_Screen:private] =>
)
[_actions:WP_List_Table:private] =>
[_pagination:WP_List_Table:private] =>
[modes:protected] => Array
(
[list] => List View
[excerpt] => Excerpt View
)
[_column_headers:protected] =>
[compat_fields:protected] => Array
(
[0] => _args
[1] => _pagination_args
[2] => screen
[3] => _actions
[4] => _pagination
)
[compat_methods:protected] => Array
(
[0] => set_pagination_args
[1] => get_views
[2] => get_bulk_actions
[3] => bulk_actions
[4] => row_actions
[5] => months_dropdown
[6] => view_switcher
[7] => comments_bubble
[8] => get_items_per_page
[9] => pagination
[10] => get_sortable_columns
[11] => get_column_info
[12] => get_table_classes
[13] => display_tablenav
[14] => extra_tablenav
[15] => single_row_columns
)
)
[1] => floated_admin_avatar
)
[accepted_args] => 2
)
[0000000058b932a5000000003aa1d545floated_admin_avatar] => Array
(
[function] => Array
(
[0] => WP_Comments_List_Table Object
(
[checkbox] => 1
[pending_count] => Array
(
)
[extra_items] =>
[user_can:WP_Comments_List_Table:private] =>
[items] =>
[_args:protected] => Array
(
[plural] => comments
[singular] => comment
[ajax] => 1
[screen] => WP_Screen Object
(
[action] =>
[base] => dashboard
[columns:WP_Screen:private] => 0
[id] => dashboard
[in_admin:protected] => site
[is_network] =>
[is_user] =>
[parent_base] => index
[parent_file] => index.php
[post_type] =>
[taxonomy] =>
[_help_tabs:WP_Screen:private] => Array
(
[overview] => Array
(
[title] => Overview
[id] => overview
[content] => <p>Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.</p>
[callback] =>
[priority] => 10
)
[help-navigation] => Array
(
[title] => Navigation
[id] => help-navigation
[content] => <p>The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.</p><p>Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.</p>
[callback] =>
[priority] => 10
)
[help-layout] => Array
(
[title] => Layout
[id] => help-layout
[content] => <p>You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.</p><p><strong>Screen Options</strong> — Use the Screen Options tab to choose which Dashboard boxes to show.</p><p><strong>Drag and Drop</strong> — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.</p><p><strong>Box Controls</strong> — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.</p>
[callback] =>
[priority] => 10
)
[help-content] => Array
(
[title] => Content
[id] => help-content
[content] => <p>The boxes on your Dashboard screen are:</p><p><strong>At A Glance</strong> — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.</p><p><strong>Activity</strong> — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.</p><p><strong>Quick Draft</strong> — Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started.</p><p><strong>WordPress News</strong> — Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>, and popular plugins.</p><p><strong>Welcome</strong> — Shows links for some of the most common tasks when setting up a new site.</p>
[callback] =>
[priority] => 10
)
)
[_help_sidebar:WP_Screen:private] => <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a></p><p><a href="https://wordpress.org/support/">Support Forums</a></p>
[_screen_reader_content:WP_Screen:private] => Array
(
)
[_options:WP_Screen:private] => Array
(
)
[_show_screen_options:WP_Screen:private] => 1
[_screen_settings:WP_Screen:private] =>
)
)
[_pagination_args:protected] => Array
(
)
[screen:protected] => WP_Screen Object
(
[action] =>
[base] => dashboard
[columns:WP_Screen:private] => 0
[id] => dashboard
[in_admin:protected] => site
[is_network] =>
[is_user] =>
[parent_base] => index
[parent_file] => index.php
[post_type] =>
[taxonomy] =>
[_help_tabs:WP_Screen:private] => Array
(
[overview] => Array
(
[title] => Overview
[id] => overview
[content] => <p>Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.</p>
[callback] =>
[priority] => 10
)
[help-navigation] => Array
(
[title] => Navigation
[id] => help-navigation
[content] => <p>The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.</p><p>Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.</p>
[callback] =>
[priority] => 10
)
[help-layout] => Array
(
[title] => Layout
[id] => help-layout
[content] => <p>You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.</p><p><strong>Screen Options</strong> — Use the Screen Options tab to choose which Dashboard boxes to show.</p><p><strong>Drag and Drop</strong> — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.</p><p><strong>Box Controls</strong> — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.</p>
[callback] =>
[priority] => 10
)
[help-content] => Array
(
[title] => Content
[id] => help-content
[content] => <p>The boxes on your Dashboard screen are:</p><p><strong>At A Glance</strong> — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.</p><p><strong>Activity</strong> — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.</p><p><strong>Quick Draft</strong> — Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started.</p><p><strong>WordPress News</strong> — Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>, and popular plugins.</p><p><strong>Welcome</strong> — Shows links for some of the most common tasks when setting up a new site.</p>
[callback] =>
[priority] => 10
)
)
[_help_sidebar:WP_Screen:private] => <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a></p><p><a href="https://wordpress.org/support/">Support Forums</a></p>
[_screen_reader_content:WP_Screen:private] => Array
(
)
[_options:WP_Screen:private] => Array
(
)
[_show_screen_options:WP_Screen:private] => 1
[_screen_settings:WP_Screen:private] =>
)
[_actions:WP_List_Table:private] =>
[_pagination:WP_List_Table:private] =>
[modes:protected] => Array
(
[list] => List View
[excerpt] => Excerpt View
)
[_column_headers:protected] =>
[compat_fields:protected] => Array
(
[0] => _args
[1] => _pagination_args
[2] => screen
[3] => _actions
[4] => _pagination
)
[compat_methods:protected] => Array
(
[0] => set_pagination_args
[1] => get_views
[2] => get_bulk_actions
[3] => bulk_actions
[4] => row_actions
[5] => months_dropdown
[6] => view_switcher
[7] => comments_bubble
[8] => get_items_per_page
[9] => pagination
[10] => get_sortable_columns
[11] => get_column_info
[12] => get_table_classes
[13] => display_tablenav
[14] => extra_tablenav
[15] => single_row_columns
)
)
[1] => floated_admin_avatar
)
[accepted_args] => 2
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[bloginfo] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[wp_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
[11] => Array
(
[capital_P_dangit] => Array
(
[function] => capital_P_dangit
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[widget_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[the_content] => WP_Hook Object
(
[callbacks] => Array
(
[8] => Array
(
[0000000058b93162000000003aa1d545run_shortcode] => Array
(
[function] => Array
(
[0] => WP_Embed Object
(
[handlers] => Array
(
[10] => Array
(
[youtube_embed_url] => Array
(
[regex] => #https?://(www.)?youtube\.com/(?:v|embed)/([^/]+)#i
[callback] => wp_embed_handler_youtube
)
)
[9999] => Array
(
[audio] => Array
(
[regex] => #^https?://.+?\.(mp3|ogg|wma|m4a|wav)$#i
[callback] => wp_embed_handler_audio
)
[video] => Array
(
[regex] => #^https?://.+?\.(mp4|m4v|webm|ogv|wmv|flv)$#i
[callback] => wp_embed_handler_video
)
)
)
[post_ID] =>
[usecache] => 1
[linkifunknown] => 1
[last_attr] => Array
(
)
[last_url] =>
[return_false_on_fail] =>
)
[1] => run_shortcode
)
[accepted_args] => 1
)
[0000000058b93162000000003aa1d545autoembed] => Array
(
[function] => Array
(
[0] => WP_Embed Object
(
[handlers] => Array
(
[10] => Array
(
[youtube_embed_url] => Array
(
[regex] => #https?://(www.)?youtube\.com/(?:v|embed)/([^/]+)#i
[callback] => wp_embed_handler_youtube
)
)
[9999] => Array
(
[audio] => Array
(
[regex] => #^https?://.+?\.(mp3|ogg|wma|m4a|wav)$#i
[callback] => wp_embed_handler_audio
)
[video] => Array
(
[regex] => #^https?://.+?\.(mp4|m4v|webm|ogv|wmv|flv)$#i
[callback] => wp_embed_handler_video
)
)
)
[post_ID] =>
[usecache] => 1
[linkifunknown] => 1
[last_attr] => Array
(
)
[last_url] =>
[return_false_on_fail] =>
)
[1] => autoembed
)
[accepted_args] => 1
)
)
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[wpautop] => Array
(
[function] => wpautop
[accepted_args] => 1
)
[shortcode_unautop] => Array
(
[function] => shortcode_unautop
[accepted_args] => 1
)
[prepend_attachment] => Array
(
[function] => prepend_attachment
[accepted_args] => 1
)
[wp_make_content_images_responsive] => Array
(
[function] => wp_make_content_images_responsive
[accepted_args] => 1
)
)
[11] => Array
(
[capital_P_dangit] => Array
(
[function] => capital_P_dangit
[accepted_args] => 1
)
[do_shortcode] => Array
(
[function] => do_shortcode
[accepted_args] => 1
)
)
[20] => Array
(
[convert_smilies] => Array
(
[function] => convert_smilies
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[the_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[trim] => Array
(
[function] => trim
[accepted_args] => 1
)
)
[11] => Array
(
[capital_P_dangit] => Array
(
[function] => capital_P_dangit
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[single_post_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[single_cat_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[single_tag_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[single_month_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[nav_menu_attr_title] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[nav_menu_description] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[term_name_rss] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[wp_insert_post_parent] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_check_post_hierarchy_for_loops] => Array
(
[function] => wp_check_post_hierarchy_for_loops
[accepted_args] => 2
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[wp_update_term_parent] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_check_term_hierarchy_for_loops] => Array
(
[function] => wp_check_term_hierarchy_for_loops
[accepted_args] => 3
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[the_excerpt] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_smilies] => Array
(
[function] => convert_smilies
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
[wpautop] => Array
(
[function] => wpautop
[accepted_args] => 1
)
[shortcode_unautop] => Array
(
[function] => shortcode_unautop
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[get_the_excerpt] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_trim_excerpt] => Array
(
[function] => wp_trim_excerpt
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[the_post_thumbnail_caption] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
[convert_smilies] => Array
(
[function] => convert_smilies
[accepted_args] => 1
)
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[comment_excerpt] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[convert_chars] => Array
(
[function] => convert_chars
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[list_cats] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wptexturize] => Array
(
[function] => wptexturize
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[wp_sprintf] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_sprintf_l] => Array
(
[function] => wp_sprintf_l
[accepted_args] => 2
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[widget_text] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[balanceTags] => Array
(
[function] => balanceTags
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[date_i18n] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[wp_maybe_decline_date] => Array
(
[function] => wp_maybe_decline_date
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
[the_title_rss] => WP_Hook Object
(
[callbacks] => Array
(
[8] => Array
(
[ent2ncr] => Array
(
[function] => ent2ncr
[accepted_args] => 1
)
)
[10] => Array
(
[strip_tags] => Array
(
[function] => strip_tags
[accepted_args] => 1
)
[esc_html] => Array
(
[function] => esc_html
[accepted_args] => 1
)
)
)
[iterations:WP_Hook:private] => Array
(
)
[current_priority:WP_Hook:private] => Array
(
)
[nesting_level:WP_Hook:private] => 0
[doing_action:WP_Hook:private] =>
)
)
)
WordPress 里面的全局数组,实在是太长了,有上万行的全局数组。
WP:不建议过度钻研,这个 blog 系统用起来还不错,还可以做企业站点,只是源码采用的设计模式比较特别,大量使用全局变量,不能算是一个进阶的途径,如果想研究奇淫巧技,这倒是可以看看的;
WordPress 真是比较简单啊!