Automattic\WooCommerce\Blocks\Templates
OrderConfirmationTemplate::remove_edit_page_link()
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() 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' ); } }