-
Notifications
You must be signed in to change notification settings - Fork 58
Extend & Customize
Discover the best way to extend the plugin to customize the behavior.
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.
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.
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.