acf_pro::plugin_dependency_slug
Filters the plugin dependency slug to allow ACF PRO to satisfy dependencies declared for ACF.
ACF PRO is a superset of ACF, so a dependency on advanced-custom-fields should be considered satisfied when ACF PRO is active.
Method of the class: acf_pro{}
No Hooks.
Returns
String.
Usage
$acf_pro = new acf_pro(); $acf_pro->plugin_dependency_slug( $slug );
- $slug(string) (required)
- The plugin dependency slug.
Changelog
| Since 6.8.2 | Introduced. |
acf_pro::plugin_dependency_slug() acf pro::plugin dependency slug code ACF 6.8.8
public function plugin_dependency_slug( $slug ) {
if ( 'advanced-custom-fields' === $slug ) {
$slug = 'advanced-custom-fields-pro';
}
return $slug;
}