• Hello, I am filtering the content of one page using

    add_filter('the_content', function($content) {
     //my stuff, ending with
    
     $content .= '[dkpdf-button]';
    
    }, 10, 1);

    The PDF button is appearing well, but when generating the PDF, the text [dkpdf-button] is showed inside the PDF.

    Is there any workaround, avoiding the use of the shortcode inside the_filter hook?

  • The topic ‘dkpdf-button shortcode has strange behaviour’ is closed to new replies.