acf_pro::plugin_dependency_slugpublicACF 6.8.2

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.

Метод класса: acf_pro{}

Хуков нет.

Возвращает

string.

Использование

$acf_pro = new acf_pro();
$acf_pro->plugin_dependency_slug( $slug );
$slug(строка) (обязательный)
The plugin dependency slug.

Список изменений

С версии 6.8.2 Введена.

Код acf_pro::plugin_dependency_slug() ACF 6.8.8

public function plugin_dependency_slug( $slug ) {
	if ( 'advanced-custom-fields' === $slug ) {
		$slug = 'advanced-custom-fields-pro';
	}

	return $slug;
}