# content-control/2.0.2/inc/functions/globals.php

Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks &amp; More, version 2.0.2. 21 lines.

- Page: https://pluginprobe.com/plugins/content-control/2.0.2/code/inc/functions/globals.php
- Raw: https://pluginprobe.com/plugins/content-control/2.0.2/raw/inc/functions/globals.php
- Modified: 2023-09-18T01:47:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/content-control/2.0.2/code/inc/functions/globals.php#L10-L20`.

```php
<?php
/**
 * Global (non namespaced) functions.
 *
 * @package ContentControl
 */

defined( 'ABSPATH' ) || exit;

/**
 * Easy access to all plugin services from the container.
 *
 * @see \ContentControl\plugin_instance
 *
 * @param string|null $service_or_config Key of service or config to fetch.
 * @return \ContentControl\Plugin\Core|mixed
 */
function content_control( $service_or_config = null ) {
	return ContentControl\plugin( $service_or_config );
}

```
