Skip to content

Commit

Permalink
Deployed 7278be3 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matapatos committed Nov 20, 2024
1 parent 4d45489 commit 2e8c1e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions advanced-user-guide/plugins-as-dependencies/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -929,26 +929,26 @@
</li>

<li class="md-nav__item">
<a href="#endpoint-dependencies-config" class="md-nav__link">
<a href="#endpoint-dependencies-up-to-date" class="md-nav__link">
<span class="md-ellipsis">
Endpoint dependencies config
Endpoint dependencies up-to-date
</span>
</a>

</li>

<li class="md-nav__item">
</ul>
</nav>

</li>

<li class="md-nav__item">
<a href="#useful-constants" class="md-nav__link">
<span class="md-ellipsis">
Useful constants
</span>
</a>

</li>

</ul>
</nav>

</li>

</ul>
Expand Down Expand Up @@ -1049,26 +1049,26 @@
</li>

<li class="md-nav__item">
<a href="#endpoint-dependencies-config" class="md-nav__link">
<a href="#endpoint-dependencies-up-to-date" class="md-nav__link">
<span class="md-ellipsis">
Endpoint dependencies config
Endpoint dependencies up-to-date
</span>
</a>

</li>

<li class="md-nav__item">
</ul>
</nav>

</li>

<li class="md-nav__item">
<a href="#useful-constants" class="md-nav__link">
<span class="md-ellipsis">
Useful constants
</span>
</a>

</li>

</ul>
</nav>

</li>

</ul>
Expand Down Expand Up @@ -1154,14 +1154,14 @@ <h3 id="router-vs-endpoint-dependencies">Router vs Endpoint dependencies</h3>
For instance, if your endpoints reside inside a plugin with a slug <code>my-plugin</code> you have to set the dependencies
to <code>['my-plugin']</code> otherwise when a request is received for that endpoint <code>my-plugin</code> will not be loaded.</p>
</div>
<h3 id="endpoint-dependencies-config">Endpoint dependencies config</h3>
<h3 id="endpoint-dependencies-up-to-date">Endpoint dependencies up-to-date</h3>
<p>Under the hood, this plugin generates a config file with all the route dependencies (see <a href="https://github.com/matapatos/wp-fastendpoints-depends/blob/main/tests/Data/config.php">example</a>).
To have the most up-to-date endpoint dependencies, make sure to either:</p>
<ul>
<li>run the <code>wp fastendpoints depends</code> command or </li>
<li>activate any plugin on the website - this also triggers the re-generation of the route dependencies</li>
</ul>
<h3 id="useful-constants">Useful constants</h3>
<h2 id="useful-constants">Useful constants</h2>
<ul>
<li><strong>FASTENDPOINTS_DEPENDS_ENABLED</strong> - If set to false always loads all active plugins. <strong>Useful for local development</strong> </li>
<li><strong>FASTENDPOINTS_DEPENDS_CONFIG_FILEPATH</strong> - Overrides dependencies config file path</li>
Expand Down
Loading

0 comments on commit 2e8c1e5

Please sign in to comment.