- This topic has 4 replies, 3 voices, and was last updated 9 months, 3 weeks ago by .
-
Topic
-
Hi
I have been using the recomended technique to extend MB_ADMIN_COLUMNS with my own columns. This has been working fine but has completerly stopped with 1.50 – the following code throws fatal errors now.
class SHS_Member_Link_Columns extends MB_Admin_Columns_Post { public function columns( $columns ) { $columns = parent::columns( $columns ); $this->add( $columns, 'member', 'Member', 'after', 'title' ); $this->add( $columns, 'subscription', 'Subscription', 'replace', 'date' ); // Add more if you want return $columns; } public function show( $column, $post_id ) { switch ( $column ) { case 'member':
MB_Admin_Columns_Post is no longer declared, nor MB_Admin_Columns_User
OK OK I spotted it – now need to extend \MBAC\Post or \MBAC\User and it all works fine – I suggest you update the docs and add something to thje update notesCheers
Hywel
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.