Viewing 1 replies (of 1 total)
  • Thread Starter Marcel Bootsman ????

    (@mbootsman)

    Solved. Thanks for this great plugin Mike!

    Used the dlm_can_download filter with this code:

    function nstrm_golf_access( $post, $download ) {
    
    	if (golfClass::is_loggedin()) {
    		$can_download = true;
    	}
    
    	return $can_download;
    }
    add_filter( 'dlm_can_download', 'nstrm_golf_access', 1, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Use hook with own access function’ is closed to new replies.