コード例 #1
0
 public function __construct($handle)
 {
     self::$pagehook = add_submenu_page($handle, __('Episode Assets', 'podlove'), __('Episode Assets', 'podlove'), 'administrator', 'podlove_episode_assets_settings_handle', array($this, 'page'));
     $this->init_page_documentation(self::$pagehook);
     add_action('admin_init', array($this, 'process_form'));
     register_setting(EpisodeAsset::$pagehook, 'podlove_asset_assignment');
 }
コード例 #2
0
ファイル: episode_asset.php プロジェクト: rthees/podlove
 public function __construct($handle)
 {
     self::$pagehook = add_submenu_page($handle, __('Episode Assets', 'podlove'), __('Episode Assets', 'podlove'), 'administrator', 'podlove_episode_assets_settings_handle', array($this, 'page'));
     add_action('admin_init', array($this, 'process_form'));
 }