GravityWP – Count
Visit GravityWP.com for documentation. Most simple version of the shortcode (Count and display the number of entries Gravity Forms for a form): [gravitywp_count formid=''] Or when you want the total of the values of a number field (display the sum of the values of a number field for all entries a specific Gravity Form): [gravitywp_count formid='' number_field=''] The most extensive version of the shortcode (display the total value of a number field from multiple Gravity Forms entries with up to five filters and input for number of decimals, the decimal point notation and the thousand seperator, etc, etc): [gravitywp_count formid='' formstatus='' number_field='' filter_mode='' filter_field='' filter_operator='' filter_value='' filter_operator2='' filter_field2='' filter_value2='' filter_field3='' filter_operator3='' filter_value3='' filter_field4='' filter_operator4='' filter_value4='' filter_field4='' filter_operator4='' filter_value4='' decimals='' dec_point='' thousands_sep='' is_read='yes' is_approved='yes' is_starred='no' created_by='1' multiply='2' start_date='12/31/2016' end_date='12/31/2017' workflow_step='' workflow_step_status='complete' workflow_step_is_current='true']
Taxonomy Terms Counter
Taxonomy Terms Counter adds term counts to taxonomy panels in the editor sidebar for both Gutenberg and Classic Editor. You can enable or disable counts per taxonomy and post type from the plugin settings page. Source Code Full source code is available on GitHub: https://github.com/secretlab48/taxonomy-terms-counter Notes: – The settings page lists taxonomies that are available in REST for the selected post type. – The plugin works on admin post screens for both Gutenberg and Classic Editor. – If an existing post type is missing on the settings page, it likely has show_in_rest set to false. – If a taxonomy is missing for a post type, it likely has show_in_rest set to false. Hooks The plugin provides the following hooks for customization: PHP Filters ttcounter_term_count_taxonomies — Filter taxonomies list for term counts. Args: $taxonomies, $post_type, $request. ttcounter_term_count_get_terms_args — Filter get_terms() args. Args: $args, $taxonomy, $post_type. ttcounter_term_count_value — Filter count value per term. Args: $count, $term, $taxonomy, $post_type. ttcounter_term_counts_response — Filter REST response. Args: $results, $post_type, $taxonomies. ttcounter_sanitized_settings — Filter sanitized settings before save. Args: $sanitized_taxs, $request. ttcounter_classic_hierarchical_label — Filter classic editor hierarchical label text. Args: $label, $term, $taxonomy, $post_type, $count. ttcounter_classic_hierarchical_item_html — Filter classic editor hierarchical item HTML. Args: $item_output, $term, $taxonomy, $post_type, $count. ttcounter_classic_flat_term_label — Filter classic editor flat term label key. Args: $label, $term, $taxonomy, $post_type, $count. PHP Actions ttcounter_settings_updated — Fires after settings are saved. Args: $sanitized_taxs, $request. JS Filters ttcounter.termCountTaxonomies — Filter taxonomy list before REST request. Args: taxonomies, postType. ttcounter.termCountData — Filter REST response data before rendering. Args: data, postType. ttcounter.restrictedPostTypes — Filter restricted post types list in settings. Args: restrictedPostTypes. ttcounter.restrictedTaxonomies — Filter restricted taxonomies list in settings. Args: restrictedTaxonomies. ttcounter.termCountLabel — Filter sidebar label text. Args: value, { name, count, label }. window.TTCounterClassicFilterLabel — Filter classic editor flat checklist label text. Args: { taxonomy, name, count, label }. JS Actions ttcounter.sidebarUpdated — Fires after sidebar counts update. Args: termsByTax.