PHP Classes

File: ai_bsc_function.php

Recommend this page to a friend!
  Classes of Mr.shaggyy83   Wordpress ChatGPT Ban Spam Comments   ai_bsc_function.php   Download  
File: ai_bsc_function.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Wordpress ChatGPT Ban Spam Comments
WordPress plugin to ban spam comments with ChatGPT
Author: By
Last change: commit

commit
Date: 7 months ago
Size: 1,294 bytes
 

Contents

Class file image Download
<?php

if ( ! defined( 'ABSPATH' ) ) exit;
if ( !
class_exists( 'abscai_all_func' ) ) {

  class
abscai_all_func{
 
      function
abscai_create_db()
{
  
$abscai_api_key=update_option('abscai_api_key','');
 
$abscai_temperature=update_option('abscai_temperature','0.6');
 
$absc_max_tokens=update_option('abscai_max_tokens','150');

$abscai_top_p=update_option('abscai_top_p','1');

$abscai_frequency_penalty=update_option('abscai_frequency_penalty','1');
$abscai_presence_penalty=update_option('abscai_presence_penalty','1');
$abscai_accepted_comment=update_option('abscai_accepted_comment','Pending');
$abscai_rejected_comment=update_option('abscai_rejected_comment','Trash');
}
 

    
       
                function
abscai_delete_records(){


        
$absc_api_key=delete_option('abscai_api_key');
 
$abscai_temperature=delete_option('abscai_temperature');
 
$abscai_max_tokens=delete_option('abscai_max_tokens','150');

$abscai_top_p=delete_option('abscai_top_p','1');

$abscai_frequency_penalty=delete_option('abscai_frequency_penalty');
$abscai_presence_penalty=delete_option('abscai_presence_penalty');
$abscai_accepted_comment=delete_option('abscai_accepted_comment');
$abscai_rejected_comment=delete_option('abscai_rejected_comment');

}
   

 

  


         }
}

 
//}



?>