Quote:
Originally Posted by AAB
Donncha's "No Ad for Friends" was last updated in 2007 and doesn't work. Does anybody know of a plugin that would block display of ads for logged in members?
|
actually if you are using a text widget, you could run a filter on the widget to only show it to non members.
Code:
add_filter( 'widget_text', 'non_members' );
function non_members($content = null ) {
/* If the user is logged in, return nothing. */
if ( is_user_logged_in() || is_null( $content ) )
return '';
/* Return the content. */
return do_shortcode( $content );
}