Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11527
    #11528

    Bartosz
    Keymaster

    Yes, of course. For example with this simple snippet:

    function custom_da_display_attachments( $html ) {
    	// if user is not logged in, but could be any condition
    	if ( ! is_user_logged_in() ) {
    		$html = '';
    	}
    	return $html;
    }
    add_filter( 'da_display_attachments', 'custom_da_display_attachments' );
    #20388

    Luk
    Participant

    Hi from new user and… WP inexpert!!! :-)
    Where I must write this snipped?
    Thanks

    #29794

    fox2plus
    Participant

    Please respond.

    Where I must write this snipped?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.