Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

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 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”;


9 years, 10 months ago

Never mind, I was able to fix it by updating my code with the latest version in the documentation.

Thank you.

9 years, 10 months ago
Tobias Schutter

We changed the constructor of the CPAC_Column class.

We removed
parent::__construct( $storage_model );
and added
to the top of the constructor.

Sorry we didn’t mentioned the clearer in the changelog. Good thing you found the documentation: register your own column. :)

9 years, 10 months ago

You must be logged in to reply to this topic.