init_menu()
init_menu() : \MainWP\Dashboard\add_submenu_page()
Method init_menu()
Initiate Sites sub menu.
Class MainWP_Manage_Sites_View
render_header_tabs(mixed $active_tab, mixed $active_text, mixed $show_language_updates)
Method render_header_tabs()
Render Sites sub page header tabs.
mixed | $active_tab | Currently active tab. |
mixed | $active_text | Currently active drop down text. |
mixed | $show_language_updates | Whether or not to show translations. |
render_site_edit_email_settings(object $website, string $type, boolean $updated_templ)
Render single site Email notification settings.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
object | $website | Object containng the website info. |
string | $type | Email type. |
boolean | $updated_templ | True if page loaded after update, false if not. |
render_edit_template(string $type, boolean $siteid = false)
Render the email notification edit form.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
string | $type | Email type. |
boolean | $siteid | Child site ID. |
m_reconnect_site(object $website, boolean $sync_first = true) : boolean
Method m_reconnect_site()
Reconnect child site.
object | $website | The website object. |
boolean | $sync_first | True try to sync before reconnect. |
Exception On errors.
true|false.
render_managesites_header(array $site_pages, array $managesites_pages, array $subPages, integer $site_id, string $shownPage)
Method render_managesites_header()
Render manage sites header.
array | $site_pages | site pages. |
array | $managesites_pages | manage site pages. |
array | $subPages | sub pages. |
integer | $site_id | Site id. |
string | $shownPage | Current Page. |