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 | |
/** | |
* Customize SearchWP stopwords per Engine. | |
*/ | |
// Optional: remove all Stopwords so you can add only unique Stopwords per Engine. | |
add_filter( 'searchwp\stopwords', '__return_empty_array' ); | |
// Add unique stopword(s) for a single SearchWP Engine. |
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 | |
// Force multiple word searches to use quoted search logic if quotes are not added. | |
// NOTE: Quoted search must be enabled (checkbox on the Advanced tab) | |
add_filter( | |
'searchwp\query\search_string', | |
function( $search_string, $query ) { | |
// If there are already quotes, bail out. | |
if ( false !== strpos( $search_string, '"' ) ) { | |
return $search_string; |
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
#!/bin/bash | |
set -e | |
# REQUIRED ACTION: Configure your backup server vars - see OVH Server Manager's "Backups" tab. | |
# BACKUP_HOST_PREFIX: use the prefix domain for the listed "Name" value on the "Backups" tab. | |
# Example: With a 'Name' value `ftpback-bhs1-3.ip-111-222-333.net` you would need to set `BACKUP_HOST_PREFIX=ftpback-bhs1-3` | |
# Add something likethese to your ~/.bashrc - /etc/profile | |
#export OVH_SERVER_ID="ns5xxxxx.ip-x-x-x.net" | |
#export BACKUP_HOST_PREFIX="ftpback-bhs1-x" |
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 | |
/* | |
* Mysql database class - only one connection alowed | |
*/ | |
class Database { | |
private $_connection; | |
private static $_instance; //The single instance | |
private $_host = "HOSTt"; | |
private $_username = "USERNAME"; | |
private $_password = "PASSWORd"; |