Releases: TypeRocket/core
Releases · TypeRocket/core
v3.0.52
v3.0.51
v3.0.50
- Allow for multiple words in registerables ID like post types and taxonomies (fixes issue TypeRocket/typerocket#78)
v3.0.48
- Make it possible to have custom fields in widgets.
class Tr_Widget extends \TypeRocket\Register\BaseWidget {
/**
* Sets up the widgets name etc
*/
public function __construct() {
parent::__construct( 'tr_widget', 'Tr Widget', [
'classname' => 'Tr_Widget',
'description' => 'Tr Widget is awesome'
] );
}
public function backend($fields)
{
echo $this->form->text('Title');
echo $this->form->date('Date');
}
public function frontend($args, $fields)
{
// make frontend code
}
public function save($new_fields, $old_fields)
{
return $new_fields;
}
}