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 | |
/** | |
* FILTER WIDGETS IN WP ADMIN | |
* assuming you already enqueued some of your js / css in WP admin ( customAdminCode() ) : | |
* include (or separately enqueue) this jQuery plugin - https://github.com/cheeaun/jquery.livefilter | |
* all code (php,js,css) is here, but you should separate it, off course ... ;) | |
*/ | |
function customAdminCode() { | |
wp_register_script('my-admin-js', get_template_directory_uri(). '/js/admin/admin.js'); |