I created two plugins, when I save one settings it completely erases the settings from the other one, and it also happens the other way round.
I really don't understand what the issue might be about since they don't share the same general configuration: one plugin options are saved in pl_popup_options and the other in pl_analytics_options. Yet when I update the first one, it erases the value of the other from the database.
Anybody faced a similar issue? What could be the reason for this?
Plugin 1
/**
* Add options page
*/
public function add_plugin_page()
{
// This page will be under "Settings"
add_options_page(
'Settings Admin',
'Pranalog Popup',
'manage_options',
'pl_popup_options',
array( $this, 'create_admin_page' )
);
}
Plugin 2
/**
* Add options page
*/
public function add_plugin_page()
{
// This page will be under "Settings"
add_options_page(
'Settings Admin',
'Pranalog Analytics',
'manage_options',
'pl_analytics_options',
array( $this, 'create_admin_page' )
);
}
Aucun commentaire:
Enregistrer un commentaire