You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Medium extends Model
{
public function __construct ($name = null, $attributes = array())
{
global $wpdb;
$this->table = $wpdb->prefix . 'mediums';
parent::__construct($attributes); // Calls Default Constructor
You don't need to provide prefix, if your table name including prefix is wp_mediums, you have to declare like this: protected $table = 'mediums';. The WordPress table prefix will be applied automatically.
How I created new model. I make:
prefix . 'mediums'; don't work.The text was updated successfully, but these errors were encountered: