bbp_author_metabox_save

  • do_action( 'bbp_author_metabox_save', $post_id, $anonymous_data )

    Source Reference:

    • Component: bbPress:: bbp-admin
      File: /bbp-admin/bbp-replies.php :: Trac Source Line: 326
      		if ( !current_user_can( 'edit_reply', $post_id ) )
      			return $post_id;
      
      		$anonymous_data = bbp_filter_anonymous_post_data();
      
      		update_post_meta( $post_id, '_bbp_anonymous_name',    $anonymous_data['bbp_anonymous_name']    );
      		update_post_meta( $post_id, '_bbp_anonymous_email',   $anonymous_data['bbp_anonymous_email']   );
      		update_post_meta( $post_id, '_bbp_anonymous_website', $anonymous_data['bbp_anonymous_website'] );
      
      		do_action( 'bbp_author_metabox_save', $post_id, $anonymous_data );
      
      		return $post_id;
      	}
      
      	/**
      	 * Add some general styling to the admin area
      	 *
      	 * @since bbPress (r2464)
      	 *
      	 * @uses bbp_get_forum_post_type() To get the forum post type
      
    • Component: bbPress:: bbp-admin
      File: /bbp-admin/bbp-topics.php :: Trac Source Line: 347
      		if ( !current_user_can( 'edit_topic', $post_id ) )
      			return $post_id;
      
      		$anonymous_data = bbp_filter_anonymous_post_data();
      
      		update_post_meta( $post_id, '_bbp_anonymous_name',    $anonymous_data['bbp_anonymous_name']    );
      		update_post_meta( $post_id, '_bbp_anonymous_email',   $anonymous_data['bbp_anonymous_email']   );
      		update_post_meta( $post_id, '_bbp_anonymous_website', $anonymous_data['bbp_anonymous_website'] );
      
      		do_action( 'bbp_author_metabox_save', $post_id, $anonymous_data );
      
      		return $post_id;
      	}
      
      	/**
      	 * Add some general styling to the admin area
      	 *
      	 * @since bbPress (r2464)
      	 *
      	 * @uses bbp_get_forum_post_type() To get the forum post type
      

Comments are closed.