/** * Removes a dbst field from dbst table * @author Howard R <*****@*****.**> * @static * @param int $dbst_id * @return boolean */ public static function remove_dbst($dbst_id) { /** first validation **/ if (!$dbst_id) { return false; } /** Multilingual **/ if (wpl_global::check_addon('pro')) { wpl_addon_pro::remove_multilingual($dbst_id); } /** trigger event **/ wpl_global::event_handler('dbst_removed', $dbst_id); wpl_db::delete("wpl_dbst", $dbst_id); }
/** * Removes a dbst field from dbst table * @author Howard R <*****@*****.**> * @static * @param int $dbst_id * @return boolean */ public static function remove_dbst($dbst_id) { /** first validation **/ if (!$dbst_id) { return false; } /** Multilingual **/ if (wpl_global::check_addon('pro')) { wpl_addon_pro::remove_multilingual($dbst_id); } wpl_db::delete("wpl_dbst", $dbst_id); }