/** * Constructor * * @since 1.0.0 * @param mixed $id */ public function __construct($id) { $this->type = 'review'; parent::__construct($id); }
/** * Constructor * * @since 1.0.0 * @param mixed $id */ public function __construct($id) { $this->type = 'photo'; parent::__construct($id); }
/** * Replace contribution titles with the contribution content, as title is always preferred in widget contributions * * NOTE: requires version higher than 1.6.3 to use this filter * * @param string $title the contribution title * @param \WC_Contribution $contribution the contribution object with comment data * @return string - updated title */ function sv_wc_prp_replace_widget_contribution_title($title, $contribution) { return $contribution->get_content(); }
/** * Constructor * * @since 1.0.0 * @param mixed $id */ public function __construct($id) { $this->type = 'question'; parent::__construct($id); }
/** * Constructor * * @since 1.0.0 * @param mixed $id */ public function __construct($id) { $this->type = 'comment'; parent::__construct($id); }