protected function getPath()
    {
        $default = (file_exists(dirname(get_template_directory()) . '/app') ? 
                    dirname(get_template_directory()) . '/app/models' :
                    get_stylesheet_directory() . '/models');

        $this->path = (has_filter('sober/models/path') ? 
                    apply_filters('sober/models/path', rtrim($this->path)) : 
                    $default);
    }
protected function getPath()
    {
        $default = (file_exists(dirname(get_template_directory()) . '/app') ? 
                    dirname(get_template_directory()) . '/app/models' :
                    get_stylesheet_directory() . '/models');

        $this->path = (has_filter('sober/models/path') ? 
                    apply_filters('sober/models/path', rtrim($this->path)) : 
                    $default);
    }
protected function getPath ( ) { $ default = ( file_exists ( dirname ( get_template_directory ( ) ) . '/app' ) ? dirname ( get_template_directory ( ) ) . '/app/models' : get_stylesheet_directory ( ) . '/models' ) ; $ this -> path = ( has_filter ( 'sober/models/path' ) ? apply_filters ( 'sober/models/path' , rtrim ( $ this -> path ) ) : $ default ) ; }
Get custom path
Get custom path