Ethna外でのfunctionからEthnaの設定ファイルを取得する場合
$ctl = $GLOBALS[‘_Ethna_controller’];
$config = $ctl->getConfig();
$config->get(‘xxx’);
これでconfig内容が取得できます
Just another WordPress site
Ethna外でのfunctionからEthnaの設定ファイルを取得する場合
$ctl = $GLOBALS[‘_Ethna_controller’];
$config = $ctl->getConfig();
$config->get(‘xxx’);
これでconfig内容が取得できます