add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style('ws-plugin--s2member');
}
remove_action("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
add_filter("ws_plugin__s2member_login_header_styles", "__return_false");
Statistics: Posted by Stephem — January 7th, 2012, 6:55 pm
Statistics: Posted by thelastminute — January 7th, 2012, 1:07 pm
<link rel="stylesheet" id="ws-plugin--s2member-css" href="http://site.com/spa/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=111220-111220-1212004154" type="text/css" media="all" />
How can I prevent s2Member Pro from loading it's default CSS?
You can create this directory and file: /wp-content/mu-plugins/s2-hacks.php
- Code:
<?php
add_action ("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
{
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
}
?>
Statistics: Posted by Stephem — January 2nd, 2012, 12:43 am