acf.php 553 Bytes
Newer Older
Benthe Kuijpers's avatar
Benthe Kuijpers committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
add_action('acf/init', 'mio_acf_options');
function mio_acf_options() {
  if( function_exists('acf_add_options_page') ) {
    
    acf_add_options_page(array(
      'page_title'  => 'MIO opties',
      'menu_title'  => 'MIO opties',
      'menu_slug'   => 'theme-general-settings',
      'capability'  => 'edit_posts',
      'position' => 1,
      'redirect'    => false
    ));

    acf_add_options_sub_page(array(
      'page_title'  => 'Footer',
      'menu_title'  => 'Footer',
      'parent_slug' => 'theme-general-settings',
    ));
  }
}
?>