Support

Account

Home Forums Backend Issues (wp-admin) Problem with Local Dev, Symbolic Links, & Asset Paths Reply To: Problem with Local Dev, Symbolic Links, & Asset Paths

  • Hi @gato-gordo,

    Thanks for the post.

    You can customize the paths and directory that has ACF by making use of the acf/settings filter.

    
    // 1. customize ACF path
    add_filter('acf/settings/path', 'my_acf_settings_path');
     
    function my_acf_settings_path( $path ) {
     
        // update path
        $path = get_stylesheet_directory() . '/acf/';
        
        // return
        return $path;
        
    }
     
    
    // 2. customize ACF dir
    add_filter('acf/settings/dir', 'my_acf_settings_dir');
     
    function my_acf_settings_dir( $dir ) {
     
        // update path
        $dir = get_stylesheet_directory_uri() . '/acf/';
        
        // return
        return $dir;
       }
    
    // 4. Include ACF
    include_once( get_stylesheet_directory() . '/acf/acf.php' );