Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    You can use the following filter to change main content of pdf/print document:

    add_filter( 'bwsplgns_get_pdf_print_content', {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 = "Lorem ipsum dolor sit amet";
    $more_content = 'Donec fringilla libero ac sapien';

    /* 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 – https://codex.ww.wp.xz.cn/Function_Reference/add_filter

    Please note that if you’ll have some difficulties with functionality adding for the content displaying, you can contact us and we’ll be glad to help you, but it’s a paid service.

    Sincerely,
    BestWebSoft Support Team

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – http://support.bestwebsoft.com/.

    Sincerely,
    BestWebSoft Support Team

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Field output’ is closed to new replies.