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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -