Title: Getting php variable
Last modified: August 22, 2016

---

# Getting php variable

 *  [djdoc](https://wordpress.org/support/users/djdoc/)
 * (@djdoc)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/getting-php-variable/)
 * Hi,
 * I’m trying to get php variable into my editor content.
    I tried to create put
   in the editor [test](https://wordpress.org/support/topic/getting-php-variable/%%mylink%%?output_format=md)
   and in the page where i get the the_content() to put instead:
 *  <?php
    $mylink=’www.example.com’; str_replace( ‘%%mylink%%’,$mylink,the_content());?
   >
 * how should i do it right?
 * [https://wordpress.org/plugins/tinymce-advanced/](https://wordpress.org/plugins/tinymce-advanced/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [11 years ago](https://wordpress.org/support/topic/getting-php-variable/#post-5820487)
 * Think there was a plugin that allows this. Not that secure though…

Viewing 1 replies (of 1 total)

The topic ‘Getting php variable’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/getting-php-variable/#post-5820487)
 * Status: not a support question