bp_blogs_delete_url_blogmeta

Deletes the 'url' blogmeta for a site.

Description

bp_blogs_delete_url_blogmeta( (int) $site_id = 0 ); 

Hooked to refresh_blog_details,, which is notably used when editing a site under Network Admin > Sites..

Parameters (1)

0. $site_id — Optional. (int)
The site id.

Usage

  1. if ( !function_exists( 'bp_blogs_delete_url_blogmeta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-functions.php'; 
  3.  
  4. // The site id. 
  5. $site_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_blogs_delete_url_blogmeta($site_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-blogs/bp-blogs-functions.php  
  1. function bp_blogs_delete_url_blogmeta( $site_id = 0 ) { 
  2. bp_blogs_delete_blogmeta( (int) $site_id, 'url' );