本文整理汇总了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