bp_blogs_new_blog_post

  • do_action( 'bp_blogs_new_blog_post', $post_id, $post, $user_id )

    Source Reference:

    • Component: BuddyPress:: bp-blogs
      File: /bp-blogs/bp-blogs-functions.php :: Trac Source Line: 203
      			));
      		}
      
      		// Update the blogs last activity
      		bp_blogs_update_blogmeta( $blog_id, 'last_activity', bp_core_current_time() );
      	} else {
      		bp_blogs_remove_post( $post_id, $blog_id, $user_id );
      	}
      
      	do_action( 'bp_blogs_new_blog_post', $post_id, $post, $user_id );
      }
      add_action( 'save_post', 'bp_blogs_record_post', 10, 2 );
      
      /**
       * Record blog comment activity. Checks if blog is public and post is not
       * password protected.
       *
       * @global $bp $bp
       * @param int $comment_id
       * @param bool $is_approved
      

Hook: add_action: bp_blogs_new_blog_post instances (1)

  • add_action( 'bp_blogs_new_blog_post',        'bp_core_clear_cache' )
    $function_to_add: bp_core_clear_cache
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-blogs
      File: /bp-blogs/bp-blogs-cache.php :: Trac Source Line: 33
      add_action( 'bp_blogs_new_blog',             'bp_blogs_format_clear_blog_cache', 10, 2 );
      
      // List actions to clear super cached pages on, if super cache is installed
      add_action( 'bp_blogs_remove_data_for_blog', 'bp_core_clear_cache' );
      

Comments are closed.