Tag Info

New answers tagged

0

Hi this is what I did to solve it: add_filter( 'script_loader_src', 'change_src' ); add_filter( 'style_loader_src', 'change_src' ); function change_src( $url ) { if( is_admin() ) return $url; // Don't filter admin area return str_replace( site_url(), 'www.mysite.com/mydefaultnetworksite', $url ); } I'm using both those filters because I want ...


1

Inspect the global variable $pagenow, and use post_type_supports() to find post types with an editor: function has_post_editor() { global $pagenow; if ( empty ( $pagenow ) ) return FALSE; if ( ! in_array( $pagenow, array ( 'post-new.php', 'post.php' ) ) ) return FALSE; return post_type_supports( ...



Top 50 recent answers are included