feat: Register plugin settings with WordPress

This commit is contained in:
2026-01-23 19:02:11 +00:00
parent 58a9b37ccf
commit 79d411f35a
2 changed files with 12 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
/**
* Plugin Name: SitiAI Product Teksten
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
* Version: 1.6.1
* Version: 1.6.2
* Author: SitiAI
* Text Domain: siti-ai-product-content-generator
* Domain Path: /languages

View File

@@ -86,6 +86,17 @@ class Groq_AI_Product_Text_Settings_Page {
}
/**
* Register plugin settings with WordPress.
*/
public function register_settings() {
register_setting(
$this->plugin->get_option_key(),
$this->plugin->get_option_key(),
[ $this->plugin, 'sanitize_settings' ]
);
}
public function hide_menu_links() {
if ( ! current_user_can( 'manage_options' ) ) {
return;