Title: Replace Box: Dynamic/PHP Define Variable
Last modified: November 2, 2021

---

# Replace Box: Dynamic/PHP Define Variable

 *  Resolved [Nabil Sikder](https://wordpress.org/support/users/mdnabilsikder/)
 * (@mdnabilsikder)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/replace-box-dynamic-php-define-variable/)
 * I am trying to change a number to dynamic value.
 * Like `2021` to PHP `time()` Function.
 * Is it possible to do? I can do it through code snippets or any replace function.
   but here it’s not rendering hash of time function. it’s rendering that function
   code directly. how to write php or some variable in that replace box.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/replace-box-dynamic-php-define-variable/#post-15030685)
 * This plugin alters text/code after ALL php has been execute. It can’t be used
   to modify any PHP code or to insert PHP code.

Viewing 1 replies (of 1 total)

The topic ‘Replace Box: Dynamic/PHP Define Variable’ is closed to new replies.

 * ![](https://ps.w.org/real-time-find-and-replace/assets/icon-256x256.png?rev=1347950)
 * [Real-Time Find and Replace](https://wordpress.org/plugins/real-time-find-and-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-time-find-and-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-time-find-and-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/real-time-find-and-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-time-find-and-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-time-find-and-replace/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/replace-box-dynamic-php-define-variable/#post-15030685)
 * Status: resolved