php - Setting WordPress option values as constants -
pretty straightforward, below code have issues security or performance? believe constants faster using variables sure benefit negligible:
$payment = get_option('swd_billing_payment'); define('swd_owner_currency', isset($payment['swd_owner_currency']) ? $payment['swd_owner_currency'] : ''); define('swd_owner_currency_symbol', isset($payment['swd_owner_currency_symbol']) ? $payment['swd_owner_currency_symbol'] : ''); define('swd_owner_bank', isset($payment['swd_owner_bank']) ? $payment['swd_owner_bank'] : ''); define('swd_owner_account_name', isset($payment['swd_owner_account_name']) ? $payment['swd_owner_account_name'] : '');
there end being around 30 constants defined various settings in database.
Comments
Post a Comment