the settings. The logs are deleted upon plugin deactivation. */ public string $logs; /** * @a-type true_false * @ui 1 * @label Generate debug dump * @instructions Turn this on and click 'Process' to download the file. The above logs and other information about your server environment will be included.
Send this to Advanced Views Support on request. */ public bool $is_generate_installation_dump; /** * @a-type checkbox * @multiple 1 * @label Include specific Layouts data in your debug dump * @instructions Select the Layout items related to your issue to include them in the debug dump. * @conditional_logic [[{"field": "local_acf_views_tools-data__is-generate-installation-dump","operator": "==","value": "1"}]] * @var string[] */ public array $dump_views; /** * @a-type checkbox * @multiple 1 * @label Include specific Post Selections data in your debug dump * @instructions Select the Post Selection items related to your issue to include them in the debug dump. * @conditional_logic [[{"field": "local_acf_views_tools-data__is-generate-installation-dump","operator": "==","value": "1"}]] * @var string[] */ public array $dump_cards; /** * @label Upgrade from version * @instructions If the automatic version migration was interrupted, enter your previous Advanced Views version number here and press 'Process' to manually trigger the migration. */ public string $upgrade_from_version; /** * @a-type true_false * @ui 1 * @label Flush caches * @instructions Activate the option and click 'Process' to flush caches. Note: use separately from other options. */ public bool $should_flush_caches; /** * @return array */ protected static function getLocationRules(): array { return array( array( 'options_page == ' . Tools_Page::SLUG, ), ); } /** * @return array * @throws Exception */ public static function getGroupInfo(): array { $group_info = parent::getGroupInfo(); // remove label for the 'message'. if ( key_exists( 'fields', $group_info ) && is_array( $group_info['fields'] ) ) { if ( isset( $group_info['fields'][1] ) && is_array( $group_info['fields'][1] ) ) { unset( $group_info['fields'][1]['label'] ); } if ( isset( $group_info['fields'][7] ) && is_array( $group_info['fields'][7] ) ) { unset( $group_info['fields'][7]['label'] ); } } return array_merge( $group_info, array( 'title' => __( 'Tools', 'acf-views' ), 'style' => 'seamless', ) ); } }