Skip to content

Extend & Customize

Keith Frey edited this page Oct 15, 2020 · 5 revisions

The basics for extending WP Search with Algolia

Discover the best way to extend the plugin to customize the behavior.

How To Extend

The plugin has been built with extensibility in mind. The plugin provides filter and action hooks as well as constants.


You should never modify files inside the wp-content/plugins directory.


Create your Custom Plugin

Your first step is to create your own plugin. For details on how to do this, please visit the official WordPress documentation at https://developer.wordpress.org/plugins/the-basics/.

To begin, create a file called my-blog.php:

<?php
/*
Plugin Name: My Blog
*/

Then you should be able to enable that plugin from your WordPress admin panel.

You can now hook into the WP Search with Algolia plugin.

Extend from a theme

Every theme contains a functions.php file where you can also extend the WP Search with Algolia plugin.