This file contains hidden or 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 TD_Custom_Rewrites { | |
public function __construct() { | |
// set up rewrite tags | |
add_rewrite_tag('%query1%', '([^&]+)'); | |
add_rewrite_tag('%query2%', '([^&]+)'); | |
add_rewrite_tag('%query3%', '([^&]+)'); |
This file contains hidden or 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
jQuery(document).ready(function() { | |
var arr_fields = []; | |
var arr_field_keys = []; | |
var arr_all_conditions = []; //raw | |
var um_field_conditions = {}; // filtered | |
var um_field_default_values = {}; | |
/** |
This file contains hidden or 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 | |
// ** MySQL settings - You can get this info from your web host ** // | |
// Totally Dev | |
if (preg_match('/totallydev.com/', $_SERVER['HTTP_HOST'])) { | |
/** The name of the database for WordPress */ | |
define('DB_NAME', 'ycam_wordpress'); | |
/** MySQL database username */ |
This file contains hidden or 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; | |
} |
This file contains hidden or 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 | |
/* | |
Use as a post deployment webhook in dploy.io to act as an intermediary between dploy.io and Slack. | |
Will take deployment notifications and post into a Slack channel. Setup an incoming webhook in Slack & note the token. | |
Customise & host this script somewhere then use in dploy.io server settings: | |
i.e. http://www.example.com/dploy.php?token=<slack_channel_token> | |
*/ |