@@ -7,7 +7,7 @@ This is a library for protecting WordPress plugins to run twice instances at the
77This 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';
7878if (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';
9999if (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
121121The final code should looks something like:
122122
123123``` php
124- $includeFilebRelativePath = '/publishpress/publishpress- instance-protection/include.php';
124+ $includeFilebRelativePath = '/publishpress/instance-protection/include.php';
125125if (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