public_html/wp-content/plugins/google-document-embedder/functions-admin.php
/**
 * Make existing profile data default (overwrite current default)
 *
 * @since   2.5.0.1
 * @return  bool Whether or not action successful
 */
Make existing profile data default (overwrite current default)
@since   2.5.0.1
@return  bool Whether or not action successful
Make existing profile data default ( overwrite current default ) @since 2 . 5 . 0 . 1 @return bool Whether or not action successful
function gde_overwrite_profile( $sourceid ) {
	global $wpdb;
	$table = $wpdb->prefix . 'gde_profiles';
	if ( $data = $wpdb->get_row( $wpdb->prepare( "SELECT profile_data FROM $table WHERE profile_id = %d", $sourceid ), ARRAY_A ) ) {
		if ( $wpdb->update ( $table, $data, array( 'profile_id' => 1 ), array( '%s' ) ) ) {
			return true;
		} else {
			return false;
		}
	} else {
		return false;
	}
}
function gde_overwrite_profile ( $ sourceid ) { global $ wpdb ; $ table = $ wpdb -> prefix . 'gde_profiles' ; if ( $ data = $ wpdb -> get_row ( $ wpdb -> prepare ( " SELECT profile_data FROM  $ table  WHERE profile_id = %d " , $ sourceid ) , ARRAY_A ) ) { if ( $ wpdb -> update ( $ table , $ data , array ( 'profile_id' => 1 ) , array ( '%s' ) ) ) { return true ; } else { return false ; } } else { return false ; } }
Make existing profile data default (overwrite current default)
 @since   2.5.0.1
 @return  bool Whether or not action successful
Make existing profile data default ( overwrite current default ) @since 2 . 5 . 0 . 1 @return bool Whether or not action successful