标题正在显示,但内容为空。。我试着一次又一次地学习一些教程,但我想我错过了一些东西。。我怎样才能让它在每个列上进行回声“测试”?
// ADD NEW COLUMN
function pslider_columns_head($defaults) {
$defaults[\'show_on_page\'] = \'Shown on page\';
return $defaults;
}
// SHOW THE VALUE
function pslider_columns_content($column_name, $post_ID) {
if ($column_name == \'show_on_page\') {
echo \'test\';
}
}
add_filter(\'manage_posts_columns\', \'pslider_columns_head\');
add_action(\'manage_posts_custom_column\', \'pslider_columns_content\', 10, 2);