bp_blogs_blog_id_before_save

  • apply_filters( 'bp_blogs_blog_id_before_save', $this->blog_id, $this->id )

    Source Reference:

    • Component: BuddyPress :: bp-blogs
      File: /bp-blogs/bp-blogs-classes.php :: Trac Source Line: 38
      		$this->user_id = $blog->user_id;
      		$this->blog_id = $blog->blog_id;
      	}
      
      	function save() {
      		global $wpdb, $bp;
      
      		$this->user_id = apply_filters( 'bp_blogs_blog_user_id_before_save', $this->user_id, $this->id );
      		$this->blog_id = apply_filters( 'bp_blogs_blog_id_before_save', $this->blog_id, $this->id );
      
      		do_action_ref_array( 'bp_blogs_blog_before_save', array( &$this ) );
      
      		// Don't try and save if there is no user ID or blog ID set.
      		if ( !$this->user_id || !$this->blog_id )
      			return false;
      
      		// Don't save if this blog has already been recorded for the user.
      		if ( !$this->id && $this->exists() )
      			return false;
      

Comments are closed.