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
/** | |
* Defines a logout link for a WP nav menu item, if that menu item has href="{someurl}?logout=1" | |
* | |
* @param array $items Menu Items | |
* @param array $args Arguments | |
* @return items Menu Items | |
*/ | |
function monsterinsights_logout_links( $items, $args ) { | |
if ( ! empty( $items ) && is_array( $items ) ) { | |
foreach( $items as $key => $item ){ |
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
function custom_monsterinsights_remove_conflicting_asset_files() { | |
// Get current screen. | |
$screen = get_current_screen(); | |
// Bail if we're not on a MonsterInsights screen. | |
if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) { | |
return; | |
} | |
$styles = array(); |
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
### Keybase proof | |
I hereby claim: | |
* I am jaygidwitz on github. | |
* I am jaygidwitz (https://keybase.io/jaygidwitz) on keybase. | |
* I have a public key ASDZTnlotnjaALdO4w0mmwo6WqW4gTY3bYuUDmecQF_2DAo | |
To claim this, I am signing this object: |
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: Ken Theme Conflict Fix for MonsterInsights | |
Plugin URI: | |
Description: Fixes conflict with Ken Theme on MonsterInsights admin pages | |
Version: 1.0.0 | |
Author: MonsterInsights Support Team | |
Author URI: https://www.monsterinsights.com | |
License: | |
License URI: |
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: Vitrine Conflict Fix for MonsterInsights | |
Plugin URI: | |
Description: Fixes conflict with Vitrine Theme on MonsterInsights admin pages | |
Version: 1.0.0 | |
Author: MonsterInsights Support Team | |
Author URI: https://www.monsterinsights.com | |
License: | |
License URI: |
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: WP Project Manager Fix for MonsterInsights | |
Plugin URI: | |
Description: Fixes conflict with WP Project Manager on MonsterInsights admin pages | |
Version: 1.0.0 | |
Author: MonsterInsights Support Team | |
Author URI: https://www.monsterinsights.com | |
License: | |
License URI: |
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: MonsterInsights Fix for Nayma Theme | |
Plugin URI: | |
Description: Fixes conflict with Nayma on MonsterInsights admin pages | |
Version: 1.0.0 | |
Author: MonsterInsights Support Team | |
Author URI: https://www.monsterinsights.com | |
License: | |
License URI: |
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: MonsterInsights Fix for Church Suite Theme by Webnus | |
Plugin URI: | |
Description: Fixes conflict with Church Theme on MonsterInsights Admin pages | |
Version: 1.0.0 | |
Author: MonsterInsights Support Team | |
Author URI: https://www.monsterinsights.com | |
License: | |
License URI: |
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: MonsterInsights User Role Dimension | |
* Description: Add a user role to the dimensions options in MonsterInsights. | |
* Version: 1.0.0 | |
* Author: MonsterInsights Support Team | |
* Author URI: https://www.monsterinsights.com | |
*/ | |
function monsterinsights_add_user_role_to_dimensions( $dimensions ) { |
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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_action( 'template_redirect', 'redirect_external_products' ); | |
function redirect_external_products() { | |
global $post; |