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

@@ -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;