Title: dkpdf-button shortcode has strange behaviour
Last modified: September 8, 2020

---

# dkpdf-button shortcode has strange behaviour

 *  [hamarkhis](https://wordpress.org/support/users/hamarkhis/)
 * (@hamarkhis)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/dkpdf-button-shortcode-has-strange-behaviour/)
 * 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.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [hamarkhis](https://wordpress.org/support/users/hamarkhis/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/dkpdf-button-shortcode-has-strange-behaviour/)
 * Status: not resolved