wp-menu-item-custom-fields icon indicating copy to clipboard operation
wp-menu-item-custom-fields copied to clipboard

Warning in settings screen

Open kalyx opened this issue 7 years ago • 0 comments

self::$fields is an array of arrays, but $columns must be an array of strings so we have to take only "label" of fields by using wp_list_pluck

In the example file change the last function to:

public static function _columns( $columns ) {

	$columns = array_merge( $columns, wp_list_pluck( self::$fields, 'label' ) );

	return $columns;
}

kalyx avatar Aug 28 '17 15:08 kalyx