Viewing 6 posts - 1 through 6 (of 6 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?

    #33127

    jcnelson@gmail.com
    Participant

    I am having the same issue. Did you find an answer on where to put the snippet of code?

    #33128

    jcnelson@gmail.com
    Participant

    This is where I added the snippet
    wp-includes/pluggable.php

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