got_url_rewrite
Filter HookDescription
Filters whether URL rewriting is available.Hook Information
File Location |
wp-admin/includes/misc.php
View on GitHub
|
Hook Type | Filter |
Line Number | 56 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$got_url_rewrite
|
Whether URL rewriting is available. |
Usage Examples
Basic Usage
<?php
// Hook into got_url_rewrite
add_filter('got_url_rewrite', 'my_custom_filter', 10, 1);
function my_custom_filter($got_url_rewrite) {
// Your custom filtering logic here
return $got_url_rewrite;
}
Source Code Context
wp-admin/includes/misc.php:56
- How this hook is used in WordPress core
<?php
51 *
52 * @since 3.7.0
53 *
54 * @param bool $got_url_rewrite Whether URL rewriting is available.
55 */
56 return apply_filters( 'got_url_rewrite', $got_url_rewrite );
57 }
58
59 /**
60 * Extracts strings from between the BEGIN and END markers in the .htaccess file.
61 *
PHP Documentation
<?php
/**
* Filters whether URL rewriting is available.
*
* @since 3.7.0
*
* @param bool $got_url_rewrite Whether URL rewriting is available.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/misc.php
Related Hooks
Related hooks will be displayed here in future updates.