bbp_pre_anonymous_post_author_website

  • apply_filters( 'bbp_pre_anonymous_post_author_website', $bbp_anonymous_website )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 740
      	// Filter variables and add errors if necessary
      	if ( !$bbp_anonymous_name  = apply_filters( 'bbp_pre_anonymous_post_author_name',  $bbp_anonymous_name  ) )
      		bbp_add_error( 'bbp_anonymous_name',  __( '<strong>ERROR</strong>: Invalid author name submitted!',   'bbpress' ) );
      
      	if ( !$bbp_anonymous_email = apply_filters( 'bbp_pre_anonymous_post_author_email', $bbp_anonymous_email ) )
      		bbp_add_error( 'bbp_anonymous_email', __( '<strong>ERROR</strong>: Invalid email address submitted!', 'bbpress' ) );
      
      	// Website is optional
      	$bbp_anonymous_website = apply_filters( 'bbp_pre_anonymous_post_author_website', $bbp_anonymous_website );
      
      	if ( !bbp_has_errors() )
      		$retval = compact( 'bbp_anonymous_name', 'bbp_anonymous_email', 'bbp_anonymous_website' );
      	else
      		$retval = false;
      
      	// Finally, return sanitized data or false
      	return apply_filters( 'bbp_filter_anonymous_post_data', $retval, $args );
      }
      

Hook: add_filter: bbp_pre_anonymous_post_author_website instances (1)

  • add_filter( 'bbp_pre_anonymous_post_author_website', $filter )
    $tag: bbp_pre_anonymous_post_author_website
    $function_to_add: $filter
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 389
      	foreach ( $filters as $filter => $priority )
      		add_filter( 'bbp_pre_anonymous_post_author_name', $filter, $priority );
      
      	// Email saves
      	foreach ( array( 'trim', 'sanitize_email', 'wp_filter_kses' ) as $filter )
      		add_filter( 'bbp_pre_anonymous_post_author_email', $filter );
      
      	// Save URL
      	foreach ( array( 'trim', 'wp_strip_all_tags', 'esc_url_raw', 'wp_filter_kses' ) as $filter )
      		add_filter( 'bbp_pre_anonymous_post_author_website', $filter );
      }
      bbp_pre_anonymous_filters();
      
      /**
       * On multisite installations you must first allow themes to be activated and
       * show up on the theme selection screen. This function will let the bbPress
       * bundled themes show up and bypass this step.
       *
       * @since bbPress (r2944)
       *
      

Comments are closed.