PHP Трейт Codeception\Module\WPSugarMethods

Показать файл Открыть проект

Открытые методы

Метод Описание
loadWpComponent ( string $component ) Includes a WordPress component file that's not included by default by WordPress.
setPermalinkStructureAndFlush ( string $permalinkStructure = '/%postname%/', boolean $hardFlush = true ) Sets the permalink structure to use and flushes the rewrite rules.
supportedWpComponents ( ) : array Returns a list of WordPress components that would not be included by default in a WordPress bootstrap.

Описание методов

loadWpComponent() публичный Метод

Includes a WordPress component file that's not included by default by WordPress.
public loadWpComponent ( string $component )
$component string The component human-readable name, see the supportedWpComponents() for a list.

setPermalinkStructureAndFlush() публичный Метод

j
public setPermalinkStructureAndFlush ( string $permalinkStructure = '/%postname%/', boolean $hardFlush = true )
$permalinkStructure string The new permalink structure; if empty then the `permalink_structure` option will be removed.
$hardFlush boolean Whether the rewrite rules should be written to the .htaccess file or not.

supportedWpComponents() публичный Метод

Returns a list of WordPress components that would not be included by default in a WordPress bootstrap.
public supportedWpComponents ( ) : array
Результат array An associative array of human readable name to `wpRootFolder` relative file path.