gdwpm_activate

The Google Drive WP Media gdwpm activate function.

Description

gdwpm_activate(); 

Usage

  1. if ( !function_exists( 'gdwpm_activate' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-drive-wp-media/google-drive-wp-media.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gdwpm_activate(); 
  7.  

Defined (1)

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

/google-drive-wp-media.php  
  1. function gdwpm_activate() { 
  2. $gdwpm_ukuran_preview = get_option('gdwpm_ukuran_preview'); // default value lebar tinggi vidchecked vidauto vidlebar vidtinggi 
  3. if(!$gdwpm_ukuran_preview || empty($gdwpm_ukuran_preview)) { 
  4. update_option('gdwpm_ukuran_preview', array('600', '700', 'checked', 'manual', '600', '370')); 
  5. }elseif(empty($gdwpm_ukuran_preview[3]) || $gdwpm_ukuran_preview[3] == '') { 
  6. update_option('gdwpm_ukuran_preview', array($gdwpm_ukuran_preview[0], $gdwpm_ukuran_preview[1], 'checked', 'manual', '600', '370')); 
  7. $gdwpm_opsi_kategori = get_option('gdwpm_opsi_kategori_dr_folder');  
  8. if(!$gdwpm_opsi_kategori) {update_option('gdwpm_opsi_kategori_dr_folder', 'checked');} 
  9. $gdwpm_opsi_chunk = get_option('gdwpm_opsi_chunk'); 
  10. if(empty($gdwpm_opsi_chunk)) { 
  11. update_option('gdwpm_opsi_chunk', array('local' => array('cekbok' => 'checked', 'chunk' => '700', 'retries' => '3'), 'drive' => array('cekbok' => 'checked', 'chunk' => '2', 'retries' => '3'))); 
  12. $gdwpm_img_thumbs = get_option('gdwpm_img_thumbs'); 
  13. if(empty($gdwpm_img_thumbs)) { 
  14. update_option('gdwpm_img_thumbs', array('', '', '150', '150', 'false')); 
  15. // Flushing Rewrite on Activation 
  16. flush_rewrite_rules();