View difference between Paste ID: 1zuZb2BL and HShA7thz
SHOW: | | - or go back to the newest paste.
1
<?php
2
3
	function my_process_main_footer() {
4
5
		global $ub_globalfootertext;
6
7
		if( is_main_site() ) {
8
			// We are on the main site
9
			remove_action( 'wp_footer', array( &$ub_globalfootertext, 'global_footer_content_output' ) );
10
		}
11
12
	}
13
14-
	add_action( 'wp_footer', 'my_process_main_footer' );
14+
	add_action( 'wp_footer', 'my_process_main_footer', 1 );
15
16
?>