PHP code example of alleyinteractive / es-admin

1. Go to this page and download the library: Download alleyinteractive/es-admin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alleyinteractive / es-admin example snippets


add_filter( 'es_admin_adapter', function() {
	return '\ES_Admin\Adapters\SearchPress';
} );

add_action( 'after_setup_theme', function() {
	if ( function_exists( 'es_wp_query_load_adapter' ) ) {
		es_wp_query_load_adapter( 'searchpress' );
	}
}, 5 );