array( 'type' => 'array' ), 'count' => array( 'type' => 'integer' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } protected function run( array $input ) { $target = Acf_Target::resolve( $input ); if ( is_wp_error( $target ) ) { return $target; } $rows = Field_Repository::all( $target ); return array( 'fields' => $rows, 'count' => count( $rows ), 'message' => sprintf( /* translators: 1: number of fields, 2: target description */ __( '%1$d field(s) on %2$s.', 'acrossai-abilities-manager' ), count( $rows ), Acf_Target::describe( $input ) ), ); } }