Title: Extending Default WordPress Search Functionality
Last modified: August 20, 2016

---

# Extending Default WordPress Search Functionality

 *  [daniechiu](https://wordpress.org/support/users/daniechiu/)
 * (@daniechiu)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/extending-default-wordpress-search-functionality/)
 * Hi,
 * I am trying to extend the functionality of the WordPress search widget that is
   provided in wordpress/wp-includes/default-widgets.php. (The Class is WP_Widget_Search.)
   I am trying to trace the wires back and understand how the current widget works
   so I can extend its functionality, but one of the major things I do not understand
   is where the query placed in the search box is actually submitted to and where
   the posts are actually searched and selected for matching the search query.
 * By looking at the code so far, I see that when the query is submitted through
   the search box, the form action is `' . home_url( '/' ) . '` and I don’t really
   understand what that means or where it points. (I am assuming that this would
   be the file I’d want to be looking through to find the rest of the search functionality.)
 * Any help in resolving this question from people wiser and more learned in the
   ways of WordPress than myself would be greatly appreciated.
 * Thanks,
    daniechiu

The topic ‘Extending Default WordPress Search Functionality’ is closed to new replies.

## Tags

 * [WordPress Plug-in](https://wordpress.org/support/topic-tag/wordpress-plug-in/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [daniechiu](https://wordpress.org/support/users/daniechiu/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/extending-default-wordpress-search-functionality/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
