所以我自定义了我的自定义帖子类型列,以便它们按我想要的顺序显示。
add_filter(\'manage_publications_posts_columns\', \'set_publication_custom_columns\');
function set_publication_custom_columns( $columns ) {
$columns = array(
\'cb\' => \'<input type="checkbox" />\',
\'title\' => __(\'Title\'),
\'pub_category\' => __(\'Categories\'),
\'pub_tag\' => __(\'Tags\'),
\'thumb\' => __(\'Cover\'),
\'date\' => __(\'Date\'),
\'analytics\' => __( \'Analytics\' )
);
return $columns;
}
但我正在使用Google Analytics Dashboard for WP插件,它在末尾添加了一个“分析”列和统计图标。除了现在,我已经定制了我的专栏,我不知道如何调用GADWP在我的
add_action(\'manage_publications_posts_custom_column\', \'custom_publications_columns\', 10, 2 );
function custom_publications_columns( $column, $post_id ) {
...
}
?
https://wordpress.org/plugins/google-analytics-dashboard-for-wp