Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
This is the legacy Gravity PDF v4 documentation which is NOT supported. Go to the latest documentation.
Jump To Section

Description #description

Use this filter to customise the content for new columns added to the PDF list view table. This action should be used in conjunction with the gfpdf_pdf_list_columns filter, which actually adds the new column to the table.

The $id in the action name refers to the column ID you set in the gfpdf_pdf_list_columns filter (the array key).

Parameters #parameters

$settings | array
The Gravity PDF Settings

Usage #usage

The following snippet shows you how to customise the output of new columns. In this case we added a new column with the stats ID using the gfpdf_pdf_list_columns filter.

add_action( 'gfpdf_pdf_list_column_stats', function( $settings ) {
     * Display the current stats which are being stored in the options table.
     * In retrospect, stats should be stored with the Gravity PDF settings directly,
     * but this example shows you how you can manipulate the column output. 
     * Don't forget to change the prefix_ to something unique to your application
    echo get_option( 'prefix_gfpdf_stats_' . $settings['id'], 0 );
} );

Source Code #source-code

This filter is located in the Helper_PDF_List_Table::column_default() method of /src/helper/Helper_PDF_List_Table.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Gravity PDF 40K Active Installs Celebration! Take 20% off any products with coupon 40KMILESTONE (this week only)Visit Store
+ +
Scroll To Top

Choose your currency:

Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)