@@ 31-39 (lines=9) @@ | ||
28 | add_action('admin_menu', [$this, 'create_menu']); |
|
29 | } |
|
30 | ||
31 | public static function make($options = []) |
|
32 | { |
|
33 | foreach ($options as $property => $value) { |
|
34 | if (property_exists($this, $property)) { |
|
35 | $this->{$property} = $value; |
|
36 | } |
|
37 | } |
|
38 | add_action('admin_menu', [$this, 'create_menu']); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Register our menu page. |
@@ 31-39 (lines=9) @@ | ||
28 | add_action('admin_menu', [$this, 'create_submenu']); |
|
29 | } |
|
30 | ||
31 | public static function make($options = []) |
|
32 | { |
|
33 | foreach ($options as $property => $value) { |
|
34 | if (property_exists($this, $property)) { |
|
35 | $this->{$property} = $value; |
|
36 | } |
|
37 | } |
|
38 | add_action('admin_menu', [$this, 'create_submenu']); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Register our menu page. |