To include ACF Extended or ACF Extended Pro within your plugin or theme, please download the appropriate plugin files and copy them into your plugin or theme. We recommend using the folder includes/acfe
within your product files.
Next, use the following code as a starter to customize and include the ACF Extended plugin into your plugin or theme.
// define path and URL to the ACFE plugin
define('MY_ACFE_PATH', get_stylesheet_directory() . '/includes/acfe/');
define('MY_ACFE_URL', get_stylesheet_directory_uri() . '/includes/acfe/');
// include the ACFE plugin
include_once(MY_ACFE_PATH . 'acf-extended.php');
// customize the url setting to fix asset URLs
add_filter('acfe/settings/url', 'my_acfe_settings_url');
function my_acfe_settings_url($url){
return MY_ACFE_URL;
}