mycred_get_settings_network

Codex / mycred/core / Functions / mycred_get_settings_network

Navigation:

  1. Description
  2. Usage
  3. Example
  4. Return

Description

Returns the myCRED Network Settings.

 

Usage

<?php $mycred = mycred_get_settings_network(); ?>

 

Example

Example 1: Check if Master Template is enforced.

$mycred_network = mycred_get_settings_network();
if ( (bool) $mycred_network['master'] == true ) {
	// It is enabled
	// do stuff...
}

 

Return

Returns either an associative array of settings or false if multisite is not enabled.

Last edited March 5, 2016