is_active_template() ) { global $wp_admin_bar; $wp_admin_bar->remove_menu( 'edit' ); } } /** * Returns the page object assigned to this template/page. * * @return \WP_Post|null Post object or null. */ protected function get_placeholder_page() { return null; } /** * True when viewing the Order Received endpoint. * * @return boolean */ protected function is_active_template() { return is_wc_endpoint_url( 'order-received' ); } }