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
function tkb_get_mapped_domain($site_id = NULL){ | |
global $wpdb; | |
if ($site_id === NULL){ | |
$site_id = get_current_blog_id(); | |
} | |
$mapped_domain = $wpdb->get_var( $wpdb->prepare( "SELECT domain FROM {$wpdb->dmtable} WHERE blog_id = %d LIMIT 1", $site_id ) ); | |
echo $mapped_domain; | |
} |
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
add_action( 'init', 'remove_classified_nav_buddypress'); | |
function remove_classified_nav_buddypress() { | |
global $Classifieds_Core; | |
remove_action('wp', array( $Classifieds_Core, 'add_navigation' ), 2); | |
} |
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
function remove_custom_admin_actions(){ | |
global $membershipadmin; | |
remove_action('all_admin_notices', array($membershipadmin, 'show_membership_status_notice')); | |
} | |
add_action( 'admin_init', 'remove_custom_admin_actions', 99); |