메소드 | 설명 | |
---|---|---|
__construct ( ) | Constructor. | |
allowedBookThemes ( array $themes ) : array | Used by add_filter( 'allowed_themes' ) Will hide any theme not in ./themes-book/* with exceptions for the PB_BOOK_THEME constant, and $GLOBALS['PB_SECRET_SAUCE']['BOOK_THEMES'][] | |
allowedRootThemes ( array $themes ) : array | Used by add_filter( 'allowed_themes' ) Will hide any theme not in ./themes-root/* with exceptions for 'pressbooks-root', the PB_ROOT_THEME constant, and $GLOBALS['PB_SECRET_SAUCE']['ROOT_THEMES'][] | |
registerThemeDirectories ( ) | Register theme directories, set a filter that hides themes under certain conditions |
public allowedBookThemes ( array $themes ) : array | ||
$themes | array | |
리턴 | array |
public allowedRootThemes ( array $themes ) : array | ||
$themes | array | |
리턴 | array |
public registerThemeDirectories ( ) |