Title: question
Last modified: March 27, 2022

---

# question

 *  Resolved [teeboy4real](https://wordpress.org/support/users/teeboy4real/)
 * (@teeboy4real)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/question-375/)
 * Hello,
 * Please I would just like to ask if this constant define( “PRESELECT_AD_CATEGORY_USE_DTD”,
   true ); can be added to child theme function.php file instead of wp-config.php
 * Thanks

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

 *  Thread Starter [teeboy4real](https://wordpress.org/support/users/teeboy4real/)
 * (@teeboy4real)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/question-375/#post-15500284)
 * Also what about this constants in functions.php
 *     ```
       // delete the ads 30 days after expiration
       define( "AUTO_DELETE_EXPIRED_DELTA", 30 );
       // skip the trash and delete ads permanently
       define( "AUTO_DELETE_EXPIRED_FORCE_DELETE", true );
       // also delete the ad attachments
       define( "AUTO_DELETE_EXPIRED_ATTACHMENTS", true );
       ```
   
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/question-375/#post-15501432)
 * Hi,
    ideally, the constants should be in the wp-config.php file, they might work
   correctly if are placed in the theme functions.php file, but to be sure double-
   check if everything is working correctly after adding them there.

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

The topic ‘question’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/question-375/#post-15501432)
 * Status: resolved