HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/advanced-post-manager/scratch.php
<?php
/**
 * A sample of acceptable filter/column data
 */

$filters_and_columns = [
	'key' => [ // Key is required.
		'name'        => 'Filter / Column title', // Required.
		'meta'        => 'Piece of post meta to query', // If it's a meta query, set this to the meta key to be queried.
		'taxonomy'    => 'registered taxonomy', // The taxonomy. APM by default automatically adds taxonomies.
		'custom_type' => 'a key for registering your own query handlers', // Your query type doesn't fit the standard kind.
		'options'     => [ // A way to limit the queried field to a dropdown rather than a search box.
			// The key is the value of the option, the value is the label.
			'meta_value'         => 'Nicer Title',
			'another_meta_value' => 'another_meta_value',
		],
		'cast'        => 'SIGNED', // Optional, for use with "meta" filters. Useful for when you want ordering to assume that meta_values are a certain type, such as numeric or date.
		'field'       => 'text', // What type of field to use in the meta box.
		'desc'        => 'Optional supporting text for display inside a metabox', // Read the value.
		'metabox'     => 'somemetaboxid', // Explicitly put in a particular metabox. Pay attention to the $metaboxes arg on tribe_setup_apm().
		'meta_order'  => 3, // Set an explicit order inside a metabox.
		// Some 'types' take additional arguments.
	],
];