Last active
January 4, 2016 02:09
-
-
Save jchristopher/8553134 to your computer and use it in GitHub Desktop.
Register your Extension with SearchWP core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SearchWPMyExtension() { | |
function __construct() { | |
add_filter( 'searchwp_extensions', array( $this, 'register' ), 10 ); | |
} | |
function register( $extensions ) { | |
$extensions['MyExtension'] = __FILE__; | |
return $extensions; | |
} | |
} | |
new My_SearchWP_Extension(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment