Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support

General

  • Pay writers per visit on WordPress
  • Shortcodes – Display stats in public pages
  • Define settings priority (user, role, category)
  • Pay per bbPress Topics and Replies
  • Caching features and stats snapshots
  • WP-CLI commands

Payment features

  • Payment features and PayPal payments
  • Setup an effective payment flow for lifetime visits
  • PayPal setup and configuration
  • Set users’ PayPal email address

Developer documentation

  • Add a custom payment criteria
  • Add a custom column to the stats table
  • Set users’ PayPal email address
  • Extract selected information from stats table
  • Handle massive Analytics data imports
  • Backup plugin data
  • Caching features and stats snapshots
  • Hide stats columns from BuddyPress Members page
  • WP-CLI commands

Analytics integration

  • Google Analytics setup and configuration
  • The future of Google Analytics integration and support for GA4
  • Matomo Analytics setup and configuration
  • Plausible Analytics setup and configuration
  • Migrate visits data away from Google Analytics
  • Share Google Adsense revenue with authors
  • Fix the “All Website Data” Analytics label issue
  • Handle massive Analytics data imports

Troubleshooting

  • Fixed a Publisher Bonus issue with complex settings setups
  • Issue with Publisher Bonus negative due payment
  • License activation failure with timeout error
  • Home
  • Docs
  • Developer documentation
  • Hide stats columns from BuddyPress Members page

The stats shortcode already allows to display Post Pay Counter stats anywhere on your site. The BuddyPress addon takes this a step further, allowing to display author’s stats in the BuddyPress Member page. However, by default, all columns are displayed. This may include columns that you are not interested into, or that you may not want to show to authors. There is no user interface to exclude some columns, but it’s easy to filter them out with a short code snippet.

/**
 * Exclude post status and post type from BuddyPress stats table.
 */ 
function ppc_buddypress_exclude_stats_columns( $shortcode ) {
    $exclude_columns = ''; //comma separated list of columns to be excluded

    return substr( $shortcode, 0, strlen( $shortcode )-1 ) . ' exclude="'.$exclude_columns.'"]';
}
add_filter( 'ppc_buddypress_stats_shortcode', 'ppc_buddypress_exclude_stats_columns' );

You should change the value of $exclude_columns to include the columns labels you would like to hide.

Valid column labels are: post_id, post_title, post_type, post_status, post_publication_date, post_words, post_visits, post_adsense_revenues, post_images, post_comments, post_bonus, post_total_payment, post_due_payment. You can inspect the stats table header in your browser to find out the label of a column not listed here.

As an example, $exclude_columns = 'post_id, post_type'; will hide the post ID and the post type from the BuddyPress Member page.

 

  • Was this Helpful ?
  • Yes   No
buddypress, stats
What are your Feelings
Updated on April 14, 2022
Caching features and stats snapshotsWP-CLI commands

Copyright © 2025 · Centric Theme on Genesis Framework · WordPress · Log in