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
(function ($) { | |
$(document).on('facetwp-loaded', function () { | |
// Facetwp Dropdowns to chosen dropdows | |
$('.facetwp-dropdown option:first-child').text(''); | |
$('.facetwp-dropdown').attr('data-placeholder', 'All'); | |
$('.facetwp-dropdown').chosen({disable_search_threshold: 50, allow_single_deselect: true}); | |
// Facetwp Sort box to chosen dropdows |
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 | |
/* | |
*Example Follw:-https://code.tutsplus.com/tutorials/build-a-custom-wordpress-user-flow-part-3-password-reset--cms-23811 | |
*/ | |
// Create the custom pages at plugin activation | |
register_activation_hook( __FILE__, 'dgm_plugin_activated' ); | |
function dgm_plugin_activated() { | |
// Information needed for creating the plugin's pages | |
$page_definitions = array( |
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 | |
/** | |
* [list_searcheable_acf list all the custom fields we want to include in our search query] | |
* @return [array] [list of custom fields] | |
*/ | |
function list_searcheable_acf(){ | |
$list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF"); | |
return $list_searcheable_acf; | |
} |