<?php /** * UnderStrap functions and definitions * */ // 1. customize ACF path add_filter('acf/settings/path', 'my_acf_settings_path'); function my_acf_settings_path( $path ) { $path = get_stylesheet_directory() . '/inc/plugins/acf/'; return $path; } // 2. customize ACF dir add_filter('acf/settings/dir', 'my_acf_settings_dir'); function my_acf_settings_dir( $dir ) { $dir = get_stylesheet_directory_uri() . '/inc/plugins/acf/'; return $dir; } // 3. Include ACF include_once( get_stylesheet_directory() . '/inc/plugins/acf/acf.php' ); // 4. Include ACF Options Page if( function_exists('acf_add_options_page') ) { acf_add_options_page(array( 'page_title' => 'Theme General Settings', 'menu_title' => 'Theme Settings', 'menu_slug' => 'theme-general-settings', 'capability' => 'edit_posts', 'redirect' => false )); }