PHP Trait Codeception\Module\WPSugarMethods

Show file Open project: lucatume/wp-browser

Public Methods

Method Description
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.

Method Details

loadWpComponent() public method

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() public method

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() public method

Returns a list of WordPress components that would not be included by default in a WordPress bootstrap.
public supportedWpComponents ( ) : array
return array An associative array of human readable name to `wpRootFolder` relative file path.