| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/themes/hello-biz/modules/settings/components/ |
Upload File : |
<?php
namespace HelloBiz\Modules\Settings\Components;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Settings_Menu {
const SETTINGS_PAGE_SLUG = 'hello-plus-settings';
public function register_settings_page( $parent_slug ): void {
add_submenu_page(
$parent_slug,
__( 'Settings', 'hello-biz' ),
__( 'Settings', 'hello-biz' ),
'manage_options',
self::SETTINGS_PAGE_SLUG,
[ $this, 'render_settings_page' ]
);
}
public function render_settings_page(): void {
echo '<div id="ehp-admin-settings" data-themestyleurl="' . esc_attr( HELLO_BIZ_STYLE_URL ) . '"></div>';
}
public function __construct() {
add_action( 'hello-plus-theme/admin-menu', [ $this, 'register_settings_page' ], 10, 1 );
}
}