Метод | Описание | |
---|---|---|
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. |
public loadWpComponent ( string $component ) | ||
$component | string | The component human-readable name, see the supportedWpComponents() for a list. |
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. |
public supportedWpComponents ( ) : array | ||
Результат | array | An associative array of human readable name to `wpRootFolder` relative file path. |