Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Premium_Integrations::add_wordpress_settings()
Registers the options
Source
File: src/core/lib/settings/trait-premium-integrations.php
private function add_wordpress_settings() { // Check if it has options if ( empty( $this->get_options() ) ) { return; } // Register the options/settings add_action( 'admin_init', function () { foreach ( $this->get_options() as $option_name ) { register_setting( $this->get_settings_id(), $option_name ); } } ); }
Expand full source code Collapse full source code View on Github