add_action( 'wp_head' , 'remove_shiftnav' ); function remove_shiftnav(){ if( is_page( 12808 ) ){ remove_action( 'wp_footer', 'shiftnav_direct_injection' ); } }