Orderadmin/abstracts/class-admin-page.php 0000644 00000020535 14760027762 0013460 0 ustar 00 page_slug = $page_slug;
$this->folder = $folder;
if ( ! $parent ) {
$this->page_id = add_menu_page(
$page_title,
$menu_title,
auto_robot_get_admin_cap(),
$page_slug,
$render ? array( $this, 'render' ) : null,
'dashicons-buddicons-replies'
);
} else {
$this->page_id = add_submenu_page(
$parent,
$page_title,
$menu_title,
auto_robot_get_admin_cap(),
$page_slug,
$render ? array( $this, 'render' ) : null
);
}
if ( $render ) {
$this->render_page_hooks();
}
$this->init();
}
/**
* Use that method instead of __construct
*
* @since 1.0.0
*/
public function init() {
}
/**
* Hooks before content render
*
* @since 1.0.0
*/
public function render_page_hooks() {
add_filter( 'load-' . $this->page_id, array( $this, 'add_page_hooks' ) );
}
/**
* Render page container
*
* @since 1.0.0
*/
public function render() {
$accessibility_enabled = get_option( 'auto_robot_enable_accessibility', false ); ?>
Auto Robot is ready. Please Click Here to add your purchase code and activate the plugin.
these instructions to retrieve' ); ?>