PHP Class WC_Admin

Author: WooThemes
Show file Open project: woocommerce/woocommerce

Public Methods

Method Description
__construct ( ) Constructor.
admin_footer_text ( string $footer_text ) : string Change the admin footer text on WooCommerce admin pages.
admin_redirects ( ) Handle redirects to setup/welcome page after install and updates.
buffer ( ) Output buffering allows admin screens to make redirects later on.
conditional_includes ( ) Include admin files conditionally.
includes ( ) Include any classes we need within admin.
prevent_admin_access ( ) Prevent any user who cannot 'edit_posts' (subscribers, customers etc) from accessing admin.
preview_emails ( ) : string Preview email template.

Method Details

__construct() public method

Constructor.
public __construct ( )

admin_redirects() public method

For setup wizard, transient must be present, the user must have access rights, and we must ignore the network/bulk plugin updaters.
public admin_redirects ( )

buffer() public method

Output buffering allows admin screens to make redirects later on.
public buffer ( )

conditional_includes() public method

Include admin files conditionally.

includes() public method

Include any classes we need within admin.
public includes ( )

prevent_admin_access() public method

Prevent any user who cannot 'edit_posts' (subscribers, customers etc) from accessing admin.

preview_emails() public method

Preview email template.
public preview_emails ( ) : string
return string