Skip to content

Commit 4193f84

Browse files
Fix the package name in the readme file
1 parent 7bdc005 commit 4193f84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a library for protecting WordPress plugins to run twice instances at the
77
This library should be added as a composer requirement running the command:
88

99
```shell
10-
composer require publishpress/publishpress-instance-protection
10+
composer require publishpress/instance-protection
1111
```
1212

1313
## How to use it
@@ -74,7 +74,7 @@ first thing that will be executed in your plugin, on the global escope, out of a
7474

7575
```php
7676
<?php
77-
$includeFilebRelativePath = '/publishpress/publishpress-instance-protection/include.php';
77+
$includeFilebRelativePath = '/publishpress/instance-protection/include.php';
7878
if (file_exists(__DIR__ . '/vendor' . $includeFilebRelativePath)) {
7979
require_once __DIR__ . '/vendor' . $includeFilebRelativePath;
8080
} else if (defined('PP_AUTHORS_VENDOR_PATH') && file_exists(PP_AUTHORS_VENDOR_PATH . $includeFilebRelativePath)) {
@@ -95,7 +95,7 @@ if (class_exists('PublishPressInstanceProtection\\Config')) {
9595

9696
```php
9797
<?php
98-
$includeFilebRelativePath = '/publishpress/publishpress-instance-protection/include.php';
98+
$includeFilebRelativePath = '/publishpress/instance-protection/include.php';
9999
if (file_exists(__DIR__ . '/vendor' . $includeFilebRelativePath)) {
100100
require_once __DIR__ . '/vendor' . $includeFilebRelativePath;
101101
} else if (defined('PP_AUTHORS_VENDOR_PATH') && file_exists(PP_AUTHORS_VENDOR_PATH . $includeFilebRelativePath)) {
@@ -121,7 +121,7 @@ The only required change is that you need to include two more configurations: `i
121121
The final code should looks something like:
122122

123123
```php
124-
$includeFilebRelativePath = '/publishpress/publishpress-instance-protection/include.php';
124+
$includeFilebRelativePath = '/publishpress/instance-protection/include.php';
125125
if (file_exists(__DIR__ . '/vendor' . $includeFilebRelativePath)) {
126126
require_once __DIR__ . '/vendor' . $includeFilebRelativePath;
127127
} else if (defined('PP_AUTHORS_VENDOR_PATH') && file_exists(PP_AUTHORS_VENDOR_PATH . $includeFilebRelativePath)) {

0 commit comments

Comments
 (0)