Abstract_Screen::register_settings_page()
Summary
No summary available.Return
(void)
Source
File: src/BigCommerce/Settings/Screens/Abstract_Screen.php
public function register_settings_page() { if ( ! $this->should_register() ) { $this->setup_unregistered_redirect(); return; } $this->hook_suffix = add_submenu_page( $this->parent_slug(), $this->get_page_title(), $this->get_menu_title(), $this->get_capability(), static::NAME, [ $this, 'render_settings_page' ] ); add_action( 'admin_body_class', [ $this, 'set_admin_body_class' ], 10, 1 ); /** * Triggered after registering a settings screen. The dynamic * portion of the hook is the name of the screen. * * @param string $hook_suffix The hook suffix generated for the screen * @param string $name The name of the screen */ do_action( 'bigcommerce/settings/register/screen=' . static::NAME, $this->hook_suffix, static::NAME ); }