Title: How to add simple_html_parser
Last modified: November 20, 2021

---

# How to add simple_html_parser

 *  Resolved [jmbamba](https://wordpress.org/support/users/jmbamba/)
 * (@jmbamba)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-simple_html_parser/)
 * Hi there. I need to use simple_html_dom.php [(see here)](http://sourceforge.net/projects/simplehtmldom/files/)
   in a snippet.
    So I will have to write an include or require_once instruction.
   Where should I store my asset to include it easily? Thanks.

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-simple_html_parser/#post-15088231)
 * You could put in your `wp-content` directory and include it like this:
 * `require_once WP_CONTENT_DIR . '/simplehtmldom/simple_html_dom.php';`
 * Making sure that you replace `simplehtmldom` with whatever the name of the folder
   is.
 *  Thread Starter [jmbamba](https://wordpress.org/support/users/jmbamba/)
 * (@jmbamba)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-simple_html_parser/#post-15117423)
 * Thanks alot! It dit work perfectly. Code Snippets Rocks!

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

The topic ‘How to add simple_html_parser’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jmbamba](https://wordpress.org/support/users/jmbamba/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-simple_html_parser/#post-15117423)
 * Status: resolved