How can I change the content pdf/print document?

You can use 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

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

- in order to change bottom running title

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

For example, add the following code to the 'functions.php' file of your theme:

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;
    }
);

For more information about WordPress filters see here.

Have more questions? Submit a request