wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_is_random_content_redirect_enabled › WordPress Function
Seit7.2.0
Veraltetn/v
› wp_is_random_content_redirect_enabled ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Determines whether random content redirects are enabled.
Quellcode
function wp_is_random_content_redirect_enabled(): bool {
/**
* Filters whether random content redirects are enabled.
*
* Random content redirects add rewrite rules for URLs such as `/random/`, so the
* rewrite rules need to be flushed after changing the value returned by this filter.
*
* @since 7.2.0
*
* @param bool $enabled Whether random content redirects are enabled. Default true.
*/
return (bool) apply_filters( 'wp_enable_random_content_redirect', true );
}