PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.9.2.7
Advanced Custom Fields: Extended v0.9.2.7
0.9.2.7 0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / includes / screens / screen-options-page.php
acf-extended / includes / screens Last commit date
screen-attachment.php 7 months ago screen-options-page.php 7 months ago screen-post.php 7 months ago screen-settings.php 7 months ago screen-taxonomy.php 3 months ago screen-user.php 7 months ago
screen-options-page.php
74 lines
1 <?php
2
3 if(!defined('ABSPATH')){
4 exit;
5 }
6
7 if(!class_exists('acfe_screen_options_page')):
8
9 class acfe_screen_options_page{
10
11 // vars
12 var $page;
13
14 /**
15 * construct
16 */
17 function __construct(){
18
19 /**
20 * hooks:
21 *
22 * acfe/load_option $page
23 * acfe/add_option_meta_boxes $page
24 */
25
26 // load
27 add_action('admin_init', array($this, 'load'));
28
29 }
30
31
32 /**
33 * load
34 *
35 * admin_init
36 */
37 function load(){
38
39 global $plugin_page;
40
41 if(!isset($plugin_page)){
42 return;
43 }
44
45 $this->page = acf_get_options_page($plugin_page);
46
47 if(!$this->page){
48 return;
49 }
50
51 // actions
52 do_action("acfe/load_option", $this->page);
53 do_action("acfe/load_option/page={$this->page['menu_slug']}", $this->page);
54
55 // hooks
56 add_action('admin_head', array($this, 'admin_head'));
57
58 }
59
60
61 /**
62 * admin_head
63 */
64 function admin_head(){
65
66 do_action('acfe/add_option_meta_boxes', $this->page);
67
68 }
69
70 }
71
72 acf_new_instance('acfe_screen_options_page');
73
74 endif;