本文整理匯總了PHP中EE_Error::dismiss_persistent_admin_notice方法的典型用法代碼示例。如果您正苦於以下問題:PHP EE_Error::dismiss_persistent_admin_notice方法的具體用法?PHP EE_Error::dismiss_persistent_admin_notice怎麽用?PHP EE_Error::dismiss_persistent_admin_notice使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類EE_Error
的用法示例。
在下文中一共展示了EE_Error::dismiss_persistent_admin_notice方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dismiss_ee_nag_notice_callback
/**
* dismiss_persistent_admin_notice
*
* @access public
* @return void
*/
public function dismiss_ee_nag_notice_callback()
{
EE_Error::dismiss_persistent_admin_notice();
}
示例2: update_country_settings
/**
* update_country_settings
*
* @access public
* @return boolean
*/
public static function update_country_settings($CNT_ISO = '', $STA_ID = '', $cols_n_values = array())
{
$CNT_ISO = !empty($CNT_ISO) ? $CNT_ISO : FALSE;
if (!$CNT_ISO) {
EE_Error::add_error(__('An invalid or missing Country ISO Code was received.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
$STA_abbrev = is_array($cols_n_values) && isset($cols_n_values['STA_abbrev']) ? $cols_n_values['STA_abbrev'] : FALSE;
if (!$STA_abbrev && !empty($STA_ID)) {
if ($state = EEM_State::instance()->get_one_by_ID($STA_ID)) {
if ($state instanceof EE_State) {
$STA_abbrev = $state->abbrev();
}
}
}
if (!$STA_abbrev) {
EE_Error::add_error(__('An invalid or missing State Abbreviation was received.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
EE_Error::dismiss_persistent_admin_notice($CNT_ISO . '-' . $STA_abbrev);
}