Automattic\WooCommerce\Blocks\Templates

OrderConfirmationTemplate::remove_edit_page_link()publicWC 1.0

Remove edit page from admin bar.

Method of the class: OrderConfirmationTemplate{}

No Hooks.

Return

null. Nothing (null).

Usage

$OrderConfirmationTemplate = new OrderConfirmationTemplate();
$OrderConfirmationTemplate->remove_edit_page_link();

OrderConfirmationTemplate::remove_edit_page_link() code WC 9.4.2

public function remove_edit_page_link() {
	if ( $this->is_active_template() ) {
		global $wp_admin_bar;
		$wp_admin_bar->remove_menu( 'edit' );
	}
}