public static function config($property, $value)
    {
        switch ($property) {
            case 'excludeShortcodes':
                self::$excludedShortcodes = [];

                if (!is_array($value)) {
                    $value = [$value];
                }

                foreach ($value as $code) {
                    if (is_string($code)) {
                        self::$excludedShortcodes[] = $code;
                    }
                }

                // Invalidate shortcode cache
                self::$shortcodes = [];
                break;
        }
    }
public static function config($property, $value)
    {
        switch ($property) {
            case 'excludeShortcodes':
                self::$excludedShortcodes = [];

                if (!is_array($value)) {
                    $value = [$value];
                }

                foreach ($value as $code) {
                    if (is_string($code)) {
                        self::$excludedShortcodes[] = $code;
                    }
                }

                // Invalidate shortcode cache
                self::$shortcodes = [];
                break;
        }
    }
public static function config ( $ property , $ value ) { switch ( $ property ) { case 'excludeShortcodes' : self :: $ excludedShortcodes = [ ] ; if ( ! is_array ( $ value ) ) { $ value = [ $ value ] ; } foreach ( $ value as $ code ) { if ( is_string ( $ code ) ) { self :: $ excludedShortcodes [ ] = $ code ; } } // Invalidate shortcode cache self :: $ shortcodes = [ ] ; break ; } }
Sets a configuration property.

@param string $property
@param mixed $value
Sets a configuration property .