Skip to content

Commit e45009c

Browse files
committed
rename black for block - 2020
1 parent cfec99b commit e45009c

File tree

9 files changed

+667
-202
lines changed

9 files changed

+667
-202
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<a href="https://beapi.fr">![Be API Github Banner](.github/banner-github.png)</a>
22

3-
# WP HTTP Blacklist
3+
# WP HTTP Blocklist
44

5-
Block unwanted HTTP requests with a blacklist.
5+
Block unwanted HTTP requests with a blocklist.
66

77
When you manage platforms with WordPress with composer, it is sometimes penalizing to have all HTTP requests for update control.
88

9-
For WordPress updates, you can use the very good [Disable All WordPress Updates](https://wordpress.org/plugins/disable-wordpress-updates/) plugin, but for other plugins, blacklist management seems more flexible :)
9+
For WordPress updates, you can use the very good [Disable All WordPress Updates](https://wordpress.org/plugins/disable-wordpress-updates/) plugin, but for other plugins, blocklist management seems more flexible :)
1010

1111
## Requirements
1212

@@ -15,23 +15,23 @@ For WordPress updates, you can use the very good [Disable All WordPress Updates]
1515

1616
## Customization and hooks
1717

18-
By default, you have a blacklist integrated into the plugin which will be gradually enriched.
18+
By default, you have a blocklist integrated into the plugin which will be gradually enriched.
1919

20-
You can add or modify the domains to block via the following hook / filter: "wp_http_blacklist" which transmits an array.
20+
You can add or modify the domains to block via the following hook / filter: "wp_http_blocklist" which transmits an array.
2121

2222
Example
2323

2424

2525
```
2626
<?php
27-
add_filter( 'wp_http_blacklist', function( $hosts ) {
27+
add_filter( 'wp_http_blocklist', function( $hosts ) {
2828
$hosts[] = 'blockthisdomain.com';
2929
3030
return $hosts;
3131
}, 10 );
3232
```
3333

34-
## How to build your own blacklist?
34+
## How to build your own blocklist?
3535

3636
Install the famous plugin [Log HTTP Requests](https://wordpress.org/plugins/log-http-requests/), and you will see all the external requests made by your platform.
3737

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "beapi/wp-http-blacklist",
3-
"description": "Block unwanted HTTP requests with a blacklist",
2+
"name": "beapi/wp-http-blocklist",
3+
"description": "Block unwanted HTTP requests with a deny list",
44
"minimum-stability": "stable",
55
"license": "GPL-2.0",
66
"authors": [

0 commit comments

Comments
 (0)