本文整理匯總了PHP中ICE_Loader::load_wpadmin_lib方法的典型用法代碼示例。如果您正苦於以下問題:PHP ICE_Loader::load_wpadmin_lib方法的具體用法?PHP ICE_Loader::load_wpadmin_lib怎麽用?PHP ICE_Loader::load_wpadmin_lib使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ICE_Loader
的用法示例。
在下文中一共展示了ICE_Loader::load_wpadmin_lib方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: load_theme_data
/**
* Load all themes information into local properties
*
* @todo only list themes which implement the scheme
*/
protected function load_theme_data()
{
ICE_Loader::load_wpadmin_lib('ms');
ICE_Loader::load_wpadmin_lib('theme');
// get current theme
$ct = current_theme_info();
// get all themes
$this->__wp_themes__ = get_allowed_themes();
// extract current theme
$this->__wp_theme__ = $this->__wp_themes__[$ct->name];
}
示例2: __
$post_id = (int) $_POST['post_id'];
// attempt to trash the post
if (wp_trash_post($post_id) !== false) {
ICE_Ajax::response(true, __('Item moved to trash', infinity_text_domain));
} else {
ICE_Ajax::response(false, __('Move item to trash failed', infinity_text_domain));
}
} else {
ICE_Ajax::response(false, __('Missing item id', infinity_text_domain));
}
}
}
//
// Supporting Classes
//
ICE_Loader::load_wpadmin_lib('class-wp-list-table', 'class-wp-posts-list-table');
/**
* @package ICE-extensions
* @subpackage widgets
* @todo find a home for this
*/
class ICE_Posts_List extends WP_Posts_List_Table
{
/**
* The current post being rendered
*
* @var stdClass
*/
private $post;
/**
* The post type of the list of posts