| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 17 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | View Code Duplication | function admin_menu() { |
|
| 42 | |||
| 43 | // bail early if no show_admin |
||
| 44 | if( !acf_get_setting('show_admin') ) |
||
| 45 | { |
||
| 46 | return; |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | // add page |
||
| 51 | $page = add_submenu_page('edit.php?post_type=acf-field-group', __('Add-ons','acf'), __('Add-ons','acf'), acf_get_setting('capability'),'acf-settings-addons', array($this,'html') ); |
||
| 52 | |||
| 53 | |||
| 54 | // actions |
||
| 55 | add_action('load-' . $page, array($this,'load')); |
||
| 56 | |||
| 57 | } |
||
| 58 | |||
| 124 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.