• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Container::has() – Returns true if the container can return an entry for the given identifier.

You appear to be a bot. Output may be restricted

Description

Returns true if the container can return an entry for the given identifier.

Returns false otherwise. has($id) returning true does not mean that get($id) will not throw an exception. It does however mean that get($id) will not throw a `NotFoundExceptionInterface`.

Usage

$bool = Container::has( $id );

Parameters

$id
( string ) required – Identifier of the entry to look for.

Returns

bool

Source

File name: woocommerce/src/Container.php


Lines:

1 to 4 of 4
  public function has( $id ) {
    return $this->container->has( $id );
  }
 

 View on GitHub View on Trac

Published: 21st August 2020 | Last updated: 22nd February 2021

Primary Sidebar

Information

Function name: Container::has
Class ref: Container
Plugin ref: WooCommerce
Version: 5.1.0
Sourcefile: src/Container.php
File ref: src/Container.php
Deprecated?: No
API Letters: C,H

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites