Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Including ACF in a custom theme or plugin

// customize ACF path
add_filter('acf/settings/path', 'my_acf_settings_path');
function my_acf_settings_path( $path ) {
    $path = get_stylesheet_directory() . '/inc/advanced-custom-fields-pro/';
    return $path;
}
// customize ACF dir
add_filter('acf/settings/dir', 'my_acf_settings_dir');
function my_acf_settings_dir( $dir ) {
    $dir = get_stylesheet_directory_uri() . '/inc/advanced-custom-fields-pro/';
    return $dir;
}
// Include ACF
include_once( get_stylesheet_directory() . '/inc/advanced-custom-fields-pro/acf.php' );
Comment

PREVIOUS NEXT
Code Example
Php :: how to depreciate a class in php comments 
Php :: functions file erased wordpress 
Php :: execcommand insert video 
Php :: 16 digit random password generator php code without function 
Php :: sail laravel mix hot 
Php :: when user click back clear form data laravel 
Php :: auto complete order paid 
Php :: concat ternary operator 
Php :: sql update views +1 
Php :: hook into admin add order item / product on add/submit 
Php :: HP officejet pro 8720 default password 
Php :: laravel orm tutorial 
Php :: condition for both of one should be true laravel eloquent 
Php :: [name] 
Php :: ubuntu add phpstorm to launcher 
Php :: comparison operators in php 
Php :: array length php for loop 
Php :: laravel check if postback 
Php :: php doctrine findby greater than 
Php :: php get last date of month 
Php :: phpunit-watcher 
Php :: PHP: how to "clone from" another object of same class 
Php :: Button in Laravel Datatable not rendering 
Php :: add image thumb on checkout woo 
Php :: magento 2.4.3 how to log 
Php :: afosto/yaac error parsing certificate request 
Php :: HTTP 500 ERROR WITHOUT MESSAGE PHP 
Php :: Prevent Displaying Uncategorized Links Wordpress 
Php :: list.blade.php 
Php :: Query without chaining not working - Laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =