AWP Classifieds 4.4.10 has 55 actions and 121 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when AWP Classifieds fires an action
add_action( 'awpcp-save-ad-details', function( $listing, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value AWP Classifieds is about to use
add_filter( 'awpcp-listing-access-key', function( $value, $listing ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires once the information for a classified ad has been saved. */ do_action( 'awpcp-save-ad-details', $listing, null ); -
/** * Fires once the information for a classified ad has been saved. */ do_action( 'awpcp_listing_information_saved', $listing, $post_data ); -
/** * Filter the newly generated Access Key for the given listing. */ apply_filters( 'awpcp-listing-access-key', $this->generate_access_key(), $listing ); -
/** * Fired after the plugin creates the view links for the table of ads in the * Classifieds Ads admin page. */ do_action( 'awpcp_after_admin_listings_views' ); -
/** * Fired before the plugin creates the view links for the table of ads in the * Classifieds Ads admin page. */ do_action( 'awpcp_before_admin_listings_views' ); -
/** * Runs before the plugin setups the handlers that generate the default * metadata. */ do_action( 'awpcp_before_configure_frontend_meta', $this ); -
/** * Filter the query vars used to count listings. */ apply_filters( 'awpcp_count_listings_query', $query_vars ); -
/** * Allow disabling the rendering of shortcodes in listings content. We run it * after the single listing check to avoid unnecessary callbacks. */ apply_filters( 'awpcp_disable_listing_shortcode_stripping', false ); -
/** * A pre_get_posts action for queries that return classified ads only. */ do_action( 'awpcp_pre_get_posts', $query ); -
/** * Filters whether the Classifieds Bar should be rendered. */ apply_filters( 'awpcp_should_show_classifieds_bar', $should_show_classifieds_bar ); -
awpcp_url_backwards_compatibility_redirection_helper_requested_listing_id
filter Copy link Customise this hook/** * A filter with a very long name to allow premium modules to help identify the * requested listing ID. */ apply_filters( 'awpcp_url_backwards_compatibility_redirection_helper_requested_listing_id', $requested_listing_id ); -
/** * Used by the main plugin and premium modules to modify or take actions based * on the current payment transaction. */ do_action( 'awpcp-process-payment-transaction', $transaction ); -
/** * Filters whether to show the quick start guide notice in the admin area. */ apply_filters( 'awpcp-show-quick-start-guide-notice', $show_quick_start_quide_notice ); -
apply_filters( 'the_content', $ad->post_content ); -
do_action( 'awpcp-before-save-listing', $ad, $data ); -
apply_filters( 'awpcp-get-posted-data', $data, 'details', $from ); -
do_action( 'awpcp-shortcode', 'place-ad' ); -
apply_filters( 'awpcp_post_listing_categories_selector_args', $params ); -
do_action( 'awpcp_single_ad_template_action' ); -
apply_filters( 'awpcp_single_ad_template_filter', '' ); -
do_action( 'awpcp-before-post-listing-page' ); -
do_action( 'awpcp-category-deleted', $category ); -
apply_filters( 'awpcp-content-after-listing-page', '' ); -
apply_filters( 'awpcp-content-before-listing-page', '' ); -
apply_filters( 'awpcp-featured-image-placeholder', $placeholders['featureimg'], 'single', $ad ); -
apply_filters( 'awpcp-find-listings-query', $query ); -
apply_filters( 'awpcp-listing-details-user-info', $info, $user_id ); -
apply_filters( 'awpcp-number-of-categories-allowed-in-post-listing-order-step', 1, $payment_term ); -
apply_filters( 'awpcp-payments-is-duplicated-transaction', false, $x_trans_id ); -
apply_filters( 'awpcp-region-fields', false, $context, $enabled_fields ); -
apply_filters( 'awpcp-render-listing-item', $rendered_listing, $listing, $i + 1 ); -
do_action( 'awpcp-renew-ad', $post->ID, null ); -
apply_filters( 'awpcp-show-ad', $output, $adid ); -
apply_filters( 'awpcp-validate-post-listing-details', $errors, $data, $payment_term ); -
apply_filters( 'awpcp-validate-post-listing-order', $errors, $data ); -
apply_filters( 'widget_title', $instance['title'] ); -
apply_filters( "{$this->listing_post_type}_row_actions", [], $post ); -
apply_filters( "{AWPCP_LISTING_POST_TYPE}_row_actions", [], $params['post_id'] ); -
apply_filters( 'awpcp_add_setting', $setting, $setting['id'], $this ); -
do_action( "awpcp_admin_load_{$admin_page->slug}" ); -
apply_filters( "awpcp_after_settings_grid_{$setting['id']}", '', $setting ); -
do_action( 'awpcp_approve_ad', $listing ); -
apply_filters( 'awpcp_before_approve_ad', $this->listing_renderer->is_public( $listing ) ); -
do_action( 'awpcp_before_edit_listing_page' ); -
do_action( 'awpcp_browse_ads_template_action' ); -
apply_filters( 'awpcp_browse_ads_template_filter', '' ); -
apply_filters( 'awpcp_categories_list_element_template', $element, $category, $depth, $args ); -
do_action( 'awpcp_clear_categories_list_cache' ); -
do_action( 'awpcp_configure_category_description_generator' ); -
do_action( 'awpcp_configure_category_title_generator', $this ); -
apply_filters( 'awpcp_container_configurations', $configurations ); -
apply_filters( 'awpcp_country_list_options_countries', $countries ); -
do_action( 'awpcp_create_subpage' ); -
apply_filters( 'awpcp_csv_importer_supported_columns', $this->get_default_supported_columns() ); -
do_action( 'awpcp_delete_ad', $post ); -
do_action( 'awpcp_disable_ad', $listing ); -
apply_filters( 'awpcp_export_date_format', 'Y-m-d H:i:s' ); -
apply_filters( 'awpcp_form_fields_stored_data', $data, 'details' ); -
do_action( 'awpcp_install' ); -
do_action( 'awpcp_listing_payment_term_changed', $listing, $previous_payment_term, $new_payment_term ); -
apply_filters( 'awpcp_listing_personal_data_properties', $properties, $listing ); -
apply_filters( 'awpcp_listings_personal_data_items_descriptions', array( 'ID' => __( 'Classified ID', 'another-wordpress-classifieds-plugin' ), 'contact_name' => __( 'Contact Name', 'another-wordpress-classifieds-plugin' ), 'contact_phone' => __( 'Contact Phone Number', 'another-wordpress-classifieds-plugin' ), 'contact_phone_number_digits' => __( 'Contact Phone Number Digits', 'another-wordpress-classifieds-plugin' ), 'contact_email' => __( 'Contact Email', ... ); -
apply_filters( 'awpcp_listings_query_clauses', $clauses, $query ); -
apply_filters( 'awpcp_listings_table_items_per_page', $items_per_page, $user ); -
do_action( 'awpcp_register_settings', $this ); -
do_action( 'awpcp_settings_validated', $new_options, $group, $subgroup ); -
do_action( "awpcp_settings_validated_{$group}", $new_options, $group, $subgroup ); -
do_action( "awpcp_settings_validated_subgroup_{$subgroup}", $new_options, $group, $subgroup ); -
do_action( 'awpcp_setup_shortcode' ); -
apply_filters( 'awpcp_should_generate_category_description', true, $this ); -
apply_filters( 'awpcp_should_generate_category_title', true, $this ); -
apply_filters( 'awpcp_submit_listing_page_script_dependencies', $dependencies ); -
apply_filters( 'awpcp_submit_listing_payment_terms', $payment_terms, $listing ); -
apply_filters( 'awpcp_submit_listing_sections', $this->sections ); -
apply_filters( 'awpcp_subpages', $pages ); -
apply_filters( 'awpcp_title_link_placeholder', $title_link, $ad, $title, $url ); -
apply_filters( 'awpcp_tool_page_views', $views ); -
do_action( 'awpcp_upgrade', $oldversion, $newversion ); -
apply_filters( 'awpcp_validate_settings', $new_options, $group, $subgroup ); -
apply_filters( "awpcp_validate_settings_{$group}", $new_options, $group, $subgroup ); -
apply_filters( "awpcp_validate_settings_subgroup_{$subgroup}", $new_options, $group, $subgroup ); -
apply_filters( 'awpcp-ad-details', stripslashes_deep( $ad->post_content ) ); -
apply_filters( 'awpcp-ad-uploaded-files-stats', array( 'images_allowed' => $images_allowed, 'images_uploaded' => $images_uploaded, 'images_left' => $images_left, ), $ad ); -
apply_filters( 'awpcp-admin-fees-table-actions', $actions, $this, $fee, $filter ); -
do_action( "awpcp-admin-init-{$admin_page->slug}" ); -
do_action( 'awpcp-admin-notices' ); -
apply_filters( 'awpcp-admin-pointers', array() ); -
do_action( "awpcp-admin-settings-page--{$current_group['id']}" ); -
apply_filters( 'awpcp-admin-sidebar', '', $float ); -
apply_filters( 'awpcp-browse-listings-content-replacement', null, $category_id ); -
apply_filters( 'awpcp-can-add-file-to-listing', $can_add_file, $listing, $limits ); -
apply_filters( 'awpcp-categories-list-container', $container, $this->options ); -
apply_filters( 'awpcp-categories-list-transient-key-params', $params ); -
do_action( 'awpcp-category-added', $term_info['term_id'], $category ); -
apply_filters( 'awpcp-category-data', $category_data, $category ); -
do_action( 'awpcp-category-edited', $term_info['term_id'], $category ); -
apply_filters( 'awpcp-category-shortcode-content-replacement', null, $attrs ); -
do_action( 'awpcp-configure-routes', $this->routes ); -
apply_filters( 'awpcp-content-after-listings-page', $options['after_content'], $context ); -
apply_filters( 'awpcp-content-after-listings-pagination', $after_pagination, $context ); -
apply_filters( 'awpcp-content-before-listings-list', $options['before_list'], $context ); -
apply_filters( 'awpcp-content-before-listings-page', $options['before_content'], $context ); -
apply_filters( 'awpcp-content-before-listings-pagination', $before_pagination, $context, $listings, $query_vars ); -
apply_filters( 'awpcp-content-placeholders', $placeholders ); -
apply_filters( 'awpcp-current-listing-id', $listing_id ); -
apply_filters( "awpcp-custom-listing-action-{$action}", [], $listing ); -
apply_filters( 'awpcp-delete-listing-url', $url, $listing ); -
apply_filters( 'awpcp-edit-listing-url', $url, $listing ); -
apply_filters( 'awpcp-fee-details-form-definition', $form_definition, $params ); -
apply_filters( 'awpcp-fee-details-posted-data', $fee_data ); -
apply_filters( 'awpcp-fee-details-successful-redirect', $redirect_target, $fee ); -
apply_filters( 'awpcp-file-handlers', array() ); -
apply_filters( 'awpcp-file-types', $this->get_default_file_types() ); -
apply_filters( 'awpcp-find-listings', $posts, $query ); -
apply_filters( 'awpcp-form-fields', $fields ); -
apply_filters( 'awpcp-get-payment-term-fee-params-from-db', $params, $object ); -
apply_filters( 'awpcp-get-regions-options', false, $type, $parent_type, $parent, $context ); -
apply_filters( 'awpcp-get-renew-ad-page-implementation', null, $term->type, $this ); -
apply_filters( 'awpcp-image-placeholders', $placeholders, $ad ); -
apply_filters( 'awpcp-imported-listing-data', $listing_data, $row_data ); -
do_action( 'awpcp-installed' ); -
apply_filters( 'awpcp-is-single-listing-page', $is_single_listing_page ); -
apply_filters( 'awpcp-listing-actions', array(), $listing ); -
do_action( 'awpcp-listing-facebook-cache-cleared', $ad ); -
do_action( 'awpcp-listing-imported', $listing, $listing_data ); -
apply_filters( 'awpcp-listing-upload-limits', $upload_limits, $listing, $payment_term ); -
apply_filters( 'awpcp-listing-url', $this->get_post_link( $post_link, $post ), $post ); -
do_action( 'awpcp-listings-imported' ); -
apply_filters( 'awpcp-listings-widget-listing-thumbnail', $html_image, $item ); -
apply_filters( 'awpcp-login-form-implementation', null ); -
do_action( 'awpcp-media-uploaded', $file, $listing ); -
apply_filters( 'awpcp-multiple-region-selector-configuration', $this->options, $context, $fields ); -
apply_filters( 'awpcp-page-requires-authentication', $page_requires_authentication ); -
do_action( 'awpcp-pages-updated', $post_id, $post_after, $post_before ); -
do_action( 'awpcp-payment-term-fee-created', $this ); -
do_action( 'awpcp-payment-term-fee-updated', $this ); -
apply_filters( 'awpcp-payment-term-payment-amount', $payment_amount, $payment_term, $payment_type, $transaction ); -
apply_filters( 'awpcp-payment-terms-list-payment-term-attributes', $attributes, $payment_term ); -
apply_filters( 'awpcp-payment-terms-list-payment-term-features', $payment_term_features, $payment_term ); -
do_action( 'awpcp-place-ad', $ad, $transaction ); -
apply_filters( 'awpcp-place-listing-listing-data', $listing_data, $ad ); -
apply_filters( 'awpcp-prepare-payment-term-fee-default-properties', $this->defaults ); -
apply_filters( 'awpcp-region-field-options', false, $context, $type, $selected, $hierarchy ); -
do_action( 'awpcp-register-payment-methods', $this ); -
do_action( 'awpcp-register-payment-term-types', $this ); -
apply_filters( 'awpcp-render-form-field', $output, $field, $form_value, $form_errors, $listing, $context ); -
apply_filters( "awpcp-render-form-field-{$field->get_slug()}", $output, $field, $form_value, $form_errors, $listing, $context ); -
apply_filters( 'awpcp-render-transaction-items', $html, $transaction ); -
apply_filters( 'awpcp-sanitize-payment-term-fee-data', $data ); -
apply_filters( 'awpcp-search-listings-content-replacement', null, $form ); -
apply_filters( 'awpcp-search-listings-query', $query, $posted_data ); -
apply_filters( 'awpcp-search-listings-widget-additional-form-fields', '', $instance, $this ); -
apply_filters( 'awpcp-search-listings-widget-defaults', array( 'title' => '', 'subtitle' => '', 'show_keyword' => 1, 'show_by' => 1, 'show_category' => 1, ) ); -
do_action( 'awpcp-search-listings-widget-form-field', $instance ); -
apply_filters( 'awpcp-search-listings-widget-update-widget', $instance, $new_instance ); -
apply_filters( 'awpcp-set-file-as-primary', false, $attachment, $listing ); -
apply_filters( 'awpcp-should-generate-basic-meta-tags', true, $this ); -
apply_filters( 'awpcp-should-generate-opengraph-tags', true, $this ); -
apply_filters( 'awpcp-should-generate-rel-canonical', true, $this ); -
apply_filters( 'awpcp-should-generate-single-post-title', true, $this ); -
apply_filters( 'awpcp-should-generate-title', true, $this ); -
apply_filters( 'awpcp-show-listing-content-replacement', null, $content, $post ); -
apply_filters( 'awpcp-single-ad-layout', $layout, $listing ); -
apply_filters( "awpcp-task-{$task->get_name()}", false, $task ); -
do_action( 'awpcp-transaction-status-updated', $transaction, $status, $errors ); -
apply_filters( 'awpcp-translate-payment-term-fee-data', $data, $_data ); -
apply_filters( 'awpcp-upload-file-constraints', array( 'mime_types' => awpcp_get_image_mime_types(), 'max_image_size' => get_awpcp_option( 'maximagesize' ), 'min_image_size' => get_awpcp_option( 'minimagesize' ), 'min_image_height' => get_awpcp_option( 'imgminheight' ), 'min_image_width' => get_awpcp_option( 'imgminwidth' ), ) ); -
apply_filters( 'awpcp-upload-limits-for-free-board', $upload_limits ); -
apply_filters( 'awpcp-upload-limits-for-payment-term', $upload_limits, $payment_term ); -
do_action( 'awpcp-user-profile-updated', $profile, $user_id ); -
do_action( 'wp_affiliate_process_cart_commission', $data ); -
apply_filters( 'wp_mail_charset', get_bloginfo( 'charset' ) );
Generated from AWP Classifieds's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: