Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Change Required Plugin Check #13

Closed
devotoare opened this issue Apr 9, 2019 · 2 comments
Closed

Change Required Plugin Check #13

devotoare opened this issue Apr 9, 2019 · 2 comments
Assignees

Comments

@devotoare
Copy link

I am developing a theme and including ACF directly in the theme via composer. I added this plugin to the same composer file but cannot activate the plugin because ACF is not being loaded in the list of plugins but rather as part of my theme. Would be nice to be able to filter where ACF is located in my theme, like this:

/**
 * Customize ACF path
 */
add_filter('acf/settings/path', function ( $path ) {
  $path = get_stylesheet_directory() . '/../vendor/advanced-custom-fields/advanced-custom-fields-pro/';
  return $path;
});

/**
* Customize ACF dir
*/
add_filter('acf/settings/dir', function ( $dir ) {
  $dir = get_stylesheet_directory_uri() . '/../vendor/advanced-custom-fields/advanced-custom-fields-pro/';
  return $dir;
});
@MaximeCulea
Copy link
Contributor

Hello, thank you for your issue.

I think you are using a tricky way of charging it. Anyway, you could rather simply load it before our plugin.

Have a look at the https://github.com/BeAPI/bea-beautiful-flexible/blob/master/classes/requirements.php#L12

Let me know.

@MaximeCulea MaximeCulea self-assigned this Apr 10, 2019
@devotoare
Copy link
Author

Ended up just loading ACF as an MU plugin for another item in my project and avoided this altogether.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants