Custom Columns no longer working after automatic update
I have a plugin file where I have two custom columns that have been working up until the most recent update 3.0.8.4. Now the columns won’t show up. Has anything changed that would make it stop working? I can tell the code is being hit at the Init() function, but the custom column is not being added to the Admin Edit screen.
class CPAC_Column_Post_Website_Issue extends CPAC_Column {
function __construct( $storage_model ) {
//Code is running here
// Identifier, pick an unique name.
$this->properties[‘type’] = ‘column-postwebsiteissue’;
// Default column label.
$this->properties[‘label’] = __( ‘Website Images’ );
// (optional) You can make it support sorting with the pro add-on enabled. Sorting will done by it’s raw value.
$this->properties[‘is_sortable’] = true;
$this->properties[‘is_filterable’] = true;
// Do not change this part.
parent::__construct( $storage_model );
}
function get_value( $post_id ) {
//Code is not running here
return “test”;
}
You must be logged in to reply to this topic.