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
/** | |
* Remove the "nofollow" attribute from all comments author's links | |
* except for a specific author. | |
*/ | |
function dofollow_blog_author_comment( $return, $author ) { | |
if ( $author === 'Your Name' ) { | |
$return = str_replace( "rel='external nofollow ugc'", '', $return ); | |
} | |
return $return; |
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 | |
/** | |
* M3 Custom Functionality | |
* | |
* @package M3CustomFunctionality | |
* @author Daniel McClure | |
* @copyright Copyright (c) 2019, Daniel McClure | |
* @license GPL-2.0+ | |
* | |
* @wordpress-plugin |
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 | |
/** | |
* Sentry.io Settings for WP Config | |
* Enables features and settings for the WordPress Sentry plugin for Sentry.io | |
* Plugin URI: https://wordpress.org/plugins/wp-sentry-integration/ | |
*/ | |
// Delete and customise as appropriate, replacing _YOUR_DSN_ with you actual DSN from Sentry.io | |
define( 'WP_SENTRY_DSN', '_YOUR_DSN_' ); // Enable PHP Tracker |
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 | |
$args = array( | |
'label' => '', // Text in Label | |
'class' => '', | |
'style' => '', | |
'wrapper_class' => '', | |
'value' => '', // if empty, retrieved from post meta where id is the meta_key | |
'id' => '', // required | |
'name' => '', //name will set from id if empty |
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 | |
// Suppress all Genesis microdata/schema output | |
add_filter( 'genesis_disable_microdata', '__return_true' ); |
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
/* ## Gravity Forms | |
--------------------------------------------- */ | |
.gform_heading, | |
.gform_body, | |
.gform_footer { | |
clear: both; | |
} | |
.gform_heading { |
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 | |
/** | |
* Settings that Block Updates for WordPress Sites | |
*/ | |
// Disable Live File Editing | |
define( 'DISALLOW_FILE_MODS', true ); | |
// Disable Automatic WordPress Updates | |
define( 'WP_AUTO_UPDATE_CORE', false ); |
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
.*\.(ai|bmp|eps|gif|indd|j2c|jp2|jpe?g|jpf|jpm|mj2|png|psd|raw|svg|tiff|webp)$ |
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 | |
// Disable WooCommerce Extension Recommendations in the WordPress Dashboard | |
add_filter( ‘woocommerce_allow_marketplace_suggestions’, ‘__return_false’ ); |
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
/** | |
* @snippet Get Current User Country (Geolocation) - WooCommerce | |
* @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 | |
* @sourcecode https://businessbloomer.com/?p=72811 | |
* @author Rodolfo Melogli | |
* @compatible Woo 3.5.3 | |
* @donate $9 https://businessbloomer.com/bloomer-armada/ | |
*/ | |
function bbloomer_use_geolocated_user_country(){ |