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
# Apache Server Config | MIT License | |
# https://gist.github.com/bhubbard/6082577 | |
# Modified from https://github.com/h5bp/server-configs-apaches | |
# ############################################################################## | |
# # Default WordPress # | |
# ############################################################################## | |
# http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/ | |
# BEGIN WordPress |
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
/* Target the main dialog */ | |
.osano-cm-info-dialog__info { | |
/* Your styles here */ | |
} | |
/* Target the header of the dialog */ | |
.osano-cm-info__info-dialog-header { | |
/* Your styles here */ | |
} |
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 | |
################################################################################ | |
// Custom WordPress Local Config | |
// Use only for Development | |
// https://gist.github.com/bhubbard/8428583 | |
################################################################################ | |
/* Database Connection Info */ | |
define('DB_NAME', ''); | |
define('DB_USER', ''); |
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
DELETE FROM wp_og6o50l3ph_options WHERE option_name LIKE '%jpsq_sync-%' | |
https://wordpress.org/support/topic/jpsq_sync-table-constantly-generated-to-the-db/ |
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
define( 'WPE_GOVERNOR', 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
<?php | |
/* | |
Plugin Name: Custom Unpublish Tool | |
Description: Add an Unpublish tool with a date picker in the Gutenberg editor. | |
*/ | |
// Enqueue the date picker script | |
function custom_unpublish_enqueue_scripts() { | |
wp_enqueue_script('jquery-ui-datepicker'); | |
} |
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 | |
/** MonsterInsights Email Hooks */ | |
// Sender email address filter hook. | |
function my_custom_sender_email_address( $original_sender_email_address ) { | |
return 'YOURSENDEREMAILADDRESS'; | |
} | |
add_filter( 'monsterinsights_email_from_address', 'my_custom_sender_email_address' ); | |
// Sender name filter hook. |
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 | |
function monsterinsights_amz_appl_affiliate_links() { | |
?> | |
<script> | |
jQuery( document ).ready(function() { | |
jQuery('a[href*="amazon.com"],a[href*="amzn.to"],a[href*="tv.apple"]').each(function() { | |
jQuery(this).attr('data-vars-ga-category', 'outbound-link-affiliate' ); | |
}); | |
}); | |
</script> |
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
/** | |
* This would add custom dimension to the admin list inside settings. | |
*/ | |
function monsterinsights_add_dimensions_to_admin_list( $dimensions ) { | |
// Add dimension to array with a unique key 'services' | |
$dimensions['services'] = array( | |
'title' => __( 'Services', 'monsterinsights-dimensions' ), // Label | |
'label' => __( 'Services', 'monsterinsights-dimensions' ), // Description | |
'enabled' => 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
<?php | |
/** | |
* Add a new "Membership Level" Custom Dimension to your Google Analytics tracking code. | |
* | |
* Requires Paid Memberships Pro, MonsterInsights Pro and the MonsterInsights - Dimensions Addon. | |
*/ | |
/** | |
* Filter for adding the new dimension as under Insights > Settings > Dimensions | |
*/ |
NewerOlder