How can I change the content of pdf/print document?

You can use the following filters:

- in order to change main content of pdf/print document

`add_filter( 'bwsplgns_get_pdf_print_content', {your_function} );`

- in order to change top running title (for Pro version only)

`add_filter( 'bwsplgns_top_running_title', {your_function} );`

- in order to change bottom running title (for Pro version only)

`add_filter( 'bwsplgns_bottom_running_title', {your_function} );`

For example, complete the following steps: 

1) Go to the plugin settings page; 

2) Open "Custom Code" tab; 

3) Mark "Activate custom PHP code" checkbox in the "PHP" section; 

4) Add the following code:

add_filter( 
    'bwsplgns_get_pdf_print_content', 
    function( $content ) {
        $my_content   = '<p>Lorem ipsum dolor sit amet</p>';
        $more_content = '<p>Donec fringilla libero ac sapien</p>';

        /* if you want add some data before to the main content */
        return $my_content . $content;

        /* if you want add some data after the main content */
        return $content . $my_content;

        /* if you want add some data both sides the main content */
        return $my_content . $content . $more_content;

        /* if you want add some data instead of the main content */
        return $my_content;
    }
);

5) Save changes.

For more information about WordPress filters, see here.

Have more questions? Submit a request