gde_delete_profile

Delete profile.

Description

gde_delete_profile( $id ); 

Parameters (1)

0. $id
The id.

Usage

  1. if ( !function_exists( 'gde_delete_profile' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4. // The id. 
  5. $id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gde_delete_profile($id); 
  9.  

Defined (1)

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

/functions-admin.php  
  1. function gde_delete_profile( $id ) { 
  2. global $wpdb; 
  3. $table = $wpdb->prefix . 'gde_profiles'; 
  4.  
  5. if ( $wpdb->query( $wpdb->prepare( "DELETE FROM $table WHERE profile_id = %d", $id ) ) > 0 ) { 
  6. return true; 
  7. } else { 
  8. return false;