Closed LeninZapata closed 5 years ago
Hi @LeninZapata
Based on your code it looks like you need to register the changes to WordPress with the register() method like so:
$postcolumn = new PostType('post');
$postcolumn->columns()->add([
'shortcode' => __('Shortcode', 'tx' ),
]);
// Register the changes...
$postcolumn->register();
Let me know if this works for you :)
It worked! thank you
Hello, can I add columns to the POST type of the wordpress core? I'm trying this but I have no results