Block
Block Rendering
| Filter Name | Parameters | Description |
|---|---|---|
awsm_jobs_block_attributes_set | $block_atts_set, $blockatts | Modify the list of attributes used for rendering the block. |
awsm_jobs_block_output_content | $block_content | Modify the final rendered block HTML before it is returned. |
AJAX / Filter Handling
| Filter Name | Parameters | Description |
|---|---|---|
awsm_jobs_block_post_filters | $attributes, $_POST | Modify block attributes after POST data is parsed (filter AJAX request). |
awsm_block_no_filtered_jobs_content | $no_jobs_content | Modify the HTML shown when no jobs match the applied filters. |
Query Arguments
| Filter Name | Parameters | Description |
|---|---|---|
awsm_job_block_query_args | $args, $filters, $attributes | Modify WP_Query args used for the job listing block. |
Data Attributes
| Filter Name | Parameters | Description |
|---|---|---|
awsm_block_job_listing_data_attrs | $attrs, $block_atts | Modify the HTML data-* attributes added to the job listing wrapper. |
Filter Terms
| Filter Name | Parameters | Description |
|---|---|---|
awsm_block_filter_terms | $terms, $taxonomy | Modify the terms shown in a filter dropdown for a given taxonomy. |
Search Field (Top Placement)
| Filter Name | Parameters | Description |
|---|---|---|
awsm_jobs_block_search_field_placeholder | $placeholder_text | Modify the search field placeholder text (top filter bar). |
awsm_jobs_block_search_field_content | $search_content | Modify the full search field HTML (top filter bar). |
Search Field (Side Placement)
| Filter Name | Parameters | Description |
|---|---|---|
awsm_jobs_block_search_field_side_placeholder | $placeholder_text | Modify the search field placeholder text (sidebar placement). |
awsm_jobs_block_search_field_content_placement_side | $search_content | Modify the full search field HTML (sidebar placement). |
Filter Dropdowns
| Filter Name | Parameters | Description |
|---|---|---|
awsm_active_block_job_filters | $available_filters, $block_atts | Modify which filter taxonomies are displayed in the block. |
awsm_job_filter_block_option_content | $option_content, $term, $taxonomy | Modify individual option HTML inside a filter dropdown. |
awsm_filter_block_label | $filter_label, $taxonomy, $tax_details | Modify the default "All …" label of a filter dropdown (top placement). |
awsm_filter_block_dropdown_label | $all_spec_label, $taxonomy, $tax_details | Modify the "All …" label in the sidebar dropdown filter. |
awsm_job_filter_dropdown_content | $dropdown_content | Modify the full HTML of a filter dropdown element. |
Filter Toggle Button
| Filter Name | Parameters | Description |
|---|---|---|
awsm_job_filters_block_toggle_btn | $toggle_control | Modify the "Filter by" toggle button HTML. |
Filter Block Output
| Filter Name | Parameters | Description |
|---|---|---|
awsm_filter_block_content | $filter_content, $available_filters_arr | Modify the entire rendered filter form HTML (top placement). |
awsm_filter_block_content_placement_side | $filter_content | Modify the entire rendered filter form HTML (sidebar placement). |
Job Specifications
| Filter Name | Parameters | Description |
|---|---|---|
awsm_block_job_spec_terms | $terms, $post_id, $taxonomy | Modify the terms fetched for a job's specification. |
awsm_block_job_spec_item_content | $spec_item_content, $post_id, $taxonomy | Modify the HTML for a single specification item. |
awsm_block_job_specs_content | $spec_content, $post_id | Modify the full specifications wrapper HTML for a job. |
Was this page helpful?