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 | |
/** | |
* Change min password strength. | |
* | |
* @author James Kemp (Iconic) | |
* @link http://iconicwp.com/decrease-strength-required-woocommerce-passwords/ | |
* @param int $strength | |
* @return int | |
*/ | |
function myclass_min_password_strength( $strength ) { |
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
<wpml-config> | |
<admin-texts> | |
<key name="wp_2fa_email_settings"> | |
<key name="enforced_email_subject"/> | |
<key name="enforced_email_body"/> | |
<key name="login_code_email_subject"/> | |
<key name="login_code_email_body"/> | |
<key name="user_account_locked_email_subject"/> | |
<key name="user_account_locked_email_body"/> | |
<key name="user_account_unlocked_email_subject"/> |
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 | |
include ("classes/Schema_Event.php"); | |
add_filter( 'wpseo_schema_graph_pieces', 'PREFIX_add_graph_pieces', 11, 2 ); | |
/** | |
* Adds Schema pieces to our output. | |
* | |
* @param array $pieces Graph pieces to output. |
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 \Yoast\WP\SEO\Generators\Schema\Abstract_Schema_Piece; | |
class Schema_Event extends Abstract_Schema_Piece { | |
/** | |
* Determines whether or not a piece should be added to the graph. | |
* | |
* @return bool |
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
//Remove Yoast HTML Comments | |
//https://gist.github.com/robwent/f36e97fdd648a40775379a86bd97b332 | |
function go_yoast() { | |
if (defined('WPSEO_VERSION')){ | |
add_action('get_header',function (){ ob_start(function ($o){ | |
return preg_replace('/\n?<.*?Yoast SEO plugin.*?>/mi','',$o); }); }); | |
add_action('wp_head',function (){ ob_end_flush(); }, 999); | |
} | |
} |
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 | |
$app = JFactory::getApplication(); | |
$view = $app->input->getCmd( 'view', '' ); | |
$body_class = ''; | |
if ( $view === 'article' ) { | |
$article = JTable::getInstance( "content" ); |
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 | |
/* | |
Plugin Name: Check Upload Filename | |
Plugin URI: https://www.robertwent.com/ | |
Description: Prevents image uploads by filename | |
Version: 1.0 | |
Author: Robert Went | |
*/ | |
add_filter('wp_handle_upload_prefilter', 'check_for_lazy_people_uploads' ); |
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 ($) { | |
Isotope.Item.prototype._create = function () { | |
// assign id, used for original-order sorting | |
this.id = this.layout.itemGUID++; | |
// transition objects | |
this._transn = { | |
ingProperties: {}, | |
clean: {}, | |
onEnd: {} |
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
# Redirects /index.php?option=com_content&task=view&id=59&Itemid=69 | |
RewriteCond %{QUERY_STRING} ^option=com_content&task=view&id=59&Itemid=69$ | |
RewriteRule ^index\.php?$ https://domain.com/page? [R=301,L] |
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
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
SSLProxyEngine On | |
ProxyRequests On | |
ProxyPreserveHost On | |
ProxyPass /stats ! | |
ProxyPass / https://127.0.0.1:8080/ |