main_page(); $this->plugins_shortcut(); } private function plugins_shortcut() { // Settings link in plugin overview on plugins page add_filter('plugin_row_meta', function ($links, $file_name) { if ($file_name == 'almefy/plugin.php') { return array_merge($links, ['settings' => "" . __('Settings', 'almefy-me') . ""]); } return $links; }, 10, 2); } // Add settings page to admin panel. private function main_page() { add_action('admin_enqueue_scripts', function ($hook) { if ($hook == $this->page_suffix) { wp_enqueue_style('almefy-settings-style', plugin_dir_url(__FILE__) . "style.css", ['almefy-global'], '1'); } }); add_action('admin_menu', function () { $this->page_suffix = add_menu_page('Almefy Settings', 'Almefy', 'manage_options', 'almefy', function () { if (!current_user_can('manage_options')) { return; } require_once(dirname(__FILE__) . '/header.php'); // show settings saved info if (isset($_GET['settings-updated'])) { add_settings_error('almefy_messages', 'almefy_message', __('Settings Saved', 'almefy-me'), 'updated'); } // show messages/errors settings_errors('almefy_messages'); // Render Settings ?>





/profile-page to redirect users to a custom page.", 'almefy-me') ?>

[almefy-login] shortcode to your page.", 'almefy-me') ?>
do_shortcode('[almefy-login]'); to your theme.", 'almefy-me') ?>






[almefy-login]', 'almefy-me') ?>
[almefy-login redirect="/replace-with-custom-page"]', 'almefy-me') ?>

Profile`.", 'almefy-me') ?>

[almefy-devices] shortcode to a custom profile page.", 'almefy-me') ?>


Profile`.", 'almefy-me') ?>


[almefy-enroll].", 'almefy-me') ?>

[almefy-register] shortcode.", 'almefy-me') ?>



[almefy-register require_username="false" button_text="Sign Up Now!"]', 'almefy-me') ?>

basic_tab($page); $this->basic_tab_redirect($page); // $this->basic_tab_login_icon($page); // $this->basic_tab_logout_icon($page); $this->api_tab($page); // $this->api_smartcode($page); // require_once(dirname(__FILE__) . '/../popup/settings.php'); // new AlmefyPopupSettings($page); }); } private function basic_tab($page) { $section = 'almefy-basic'; // Add to wp add_settings_section($section, __('Basic', 'almefy-me'), function () { // Settings Section Title }, $page); // API Enabled $setting_name = 'almefy-api-enabled'; register_setting($page, $setting_name); add_settings_field($setting_name . "_field", '', function () { $setting_name = 'almefy-api-enabled'; $setting = get_option($setting_name, "1"); ?>
/>
/>
/>
not for production use!", 'almefy-me') ?>
1, 'custom_src' => '' ]); ?>
" alt="logo1"> />
" alt="logo1"> />
" alt="logo1"> />
" alt="logo1"> />
'; ?> />
1, 'custom_src' => '' ]); ?>
" alt="logo1"> />
'; ?> />

COMING SOON

support@almefy.com. Send us a 500px x 500px image of your logo or an image and we'll do the rest.", 'almefy-me') ?>

Almefy Code

SmartImage