From 72271268d16d3bfe8136bddcf92a12d7c0f24ed6 Mon Sep 17 00:00:00 2001 From: alessandrocarrera Date: Wed, 18 Oct 2023 11:07:06 +0200 Subject: [PATCH] Managed ACF PRO fields too for the clean command. --- lib/acfwpcli/field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acfwpcli/field.php b/lib/acfwpcli/field.php index 9aeb0b0..dfbdc47 100644 --- a/lib/acfwpcli/field.php +++ b/lib/acfwpcli/field.php @@ -32,7 +32,7 @@ public static function import( $field, $field_group ) { public static function all() { return get_posts(array( 'posts_per_page' => -1, - 'post_type' => 'acf-field', + 'post_type' => array( 'acf-field', 'acf-post-type', 'acf-taxonomy', 'acf-ui-options-page' ), 'orderby' => 'menu_order', 'order' => 'ASC', 'suppress_filters' => true, // DO NOT allow WPML to modify the query