Skip to content

Extend & Customize

Michael Beckwith edited this page Dec 15, 2022 · 5 revisions

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/wp-search-with-algolia 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/plugin-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. If you choose to use your theme files to extend the plugin, please consider creating a child theme so that you can update your theme without losing your changes.

You can read more about Child Themes in the WordPress documentation.