WordPress filter hook
wp_listings_post_type_args
Fired by 2 WordPress plugins, running on 7,010+ sites between them.
How to use wp_listings_post_type_args
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wp_listings_post_type_args', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from IMPress for IDX Broker's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire wp_listings_post_type_args
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
IMPress for IDX Broker7,000+ installs
apply_filters( 'wp_listings_post_type_args', [ 'labels' => [ 'name' => __( 'Listings', 'wp-listings' ), 'singular_name' => __( 'Listing', 'wp-listings' ), 'add_new' => __( 'Add New', 'wp-listings' ), 'add_new_item' => __( 'Add New Listing', 'wp-listings' ), 'edit' => __( 'Edit', 'wp-listings' ), 'edit_item' => __( 'Edit Listing', 'wp-listings' ), 'new_item' => __( 'New Listing', 'wp-listings' ), 'view' => __( 'View Listing', 'wp-listings'... )add-ons/listings/includes/class-listings.php:209 -
TRACK Connect10+ installs
apply_filters( 'wp_listings_post_type_args', array( 'labels' => array( 'name' => __( 'TRACK Connect', 'wp_listings' ), 'singular_name' => __( 'Listing', 'wp_listings' ), 'add_new' => __( 'Add New', 'wp_listings' ), 'add_new_item' => __( 'Add New Listing', 'wp_listings' ), 'edit' => __( 'Edit', 'wp_listings' ), 'edit_item' => __( 'Edit Listing', 'wp_listings' ), 'new_item' => __( 'New Listing', 'wp_listings' ), 'view' => __( 'View Listing'... )includes/class-listings.php:106
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.