We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea6f43 commit 41a159cCopy full SHA for 41a159c
src/class-settings-page.php
@@ -89,6 +89,11 @@ function( $cap ) {
89
* Callback che registra tutti i nostri settings usando l'API
90
*/
91
public function admin_init() {
92
+ // Se non siamo sulla pagina dei settings, non
93
+ // serve calcolare le sezioni e i campi
94
+ if ( ( $_GET[ 'page' ] ?? '' ) !== $this->slug ) {
95
+ return;
96
+ }
97
$this->api->set_sections( $this->getSections() );
98
$this->api->set_fields( $this->getFields() );
99
$this->api->admin_init();
0 commit comments