I’ve added an choices web page utilizing this:
add_options_page(
$title,
$title,
'learn',
'wp-video-reviews-licenses',
array($this, 'render_licenses_menu')
);
Then within the callback:
public perform render_licenses_menu()
{
$title = sprintf(__('%s License', $this->text_domain), $this->product_name);
$settings_group_id = $this->product_id . '-license-settings-group';
?>
<div class="wrap">
<kind motion='choices.php' methodology='put up'>
<h2><?php echo $title; ?></h2>
<?php
settings_fields($settings_group_id);
do_settings_sections($settings_group_id);
submit_button();
?>
</kind>
</div>
<?php
//add_action('updated_option_wp-video-reviews-license-settings', array($this, 'register_license'), 10, 3);
add_action('update_option', array($this, 'register_license'), 10, 3);
}
The issue is that after I submit the web page for replace, the hook “register_license” is not known as. However the discipline is accurately up to date:
Why the hook is not known as?