本文整理匯總了PHP中TitanFramework::initializing方法的典型用法代碼示例。如果您正苦於以下問題:PHP TitanFramework::initializing方法的具體用法?PHP TitanFramework::initializing怎麽用?PHP TitanFramework::initializing使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TitanFramework
的用法示例。
在下文中一共展示了TitanFramework::initializing方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: triggerOptionCreation
/**
* This will trigger the loading of all the options
*
* @access public
* @return void
* @since 1.6
*/
public function triggerOptionCreation()
{
// The after_setup_theme is the initialization stage
if (current_filter() == 'after_setup_theme') {
TitanFramework::$initializing = true;
}
do_action('tf_create_options');
TitanFramework::$initializing = false;
}
示例2: trigger_initial_option_creation
/**
* Trigger initial loading of all the options. Initial loading is when all options are
* gathered for pre-processing: saving default values & checking.
*
* @since 1.8.2
* @access public
*
* @return void
*/
public function trigger_initial_option_creation()
{
TitanFramework::$initializing = true;
do_action('tf_create_options');
TitanFramework::$initializing = false;
}