You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<aid="md:usage" class="tsd-anchor"></a><h2><ahref="#md:usage">Usage</a></h2><aid="md:setting-the-config" class="tsd-anchor"></a><h3><ahref="#md:setting-the-config">Setting the Config</a></h3><pre><code><spanclass="hl-2">// src/main.ts</span><br/><spanclass="hl-3">import</span><spanclass="hl-1"> { </span><spanclass="hl-0">ConfigManager</span><spanclass="hl-1"> } </span><spanclass="hl-3">from</span><spanclass="hl-1"></span><spanclass="hl-4">"@quickdevelopment/wp-js"</span><spanclass="hl-1">;</span><br/><br/><spanclass="hl-0">ConfigManager</span><spanclass="hl-1">.</span><spanclass="hl-5">getInstance</span><spanclass="hl-1">({</span><br/><spanclass="hl-1"></span><spanclass="hl-2">// Replace with your WordPress API URL</span><br/><spanclass="hl-1"></span><spanclass="hl-0">apiUrl:</span><spanclass="hl-1"></span><spanclass="hl-4">'https://developer.wordpress.org/wp-json/wp/v2'</span><spanclass="hl-1">,</span><br/><spanclass="hl-1"></span><spanclass="hl-0">embed:</span><spanclass="hl-1"></span><spanclass="hl-6">true</span><br/><spanclass="hl-1">});</span>
22
22
</code><button>Copy</button></pre>
23
23
<aid="md:retrieve-posts" class="tsd-anchor"></a><h3><ahref="#md:retrieve-posts">Retrieve Posts</a></h3><p>This is an example of how to retrieve posts from your WordPress site using the <code>Post</code> class.</p>
<aid="md:documentation" class="tsd-anchor"></a><h2><ahref="#md:documentation">Documentation</a></h2><p>For more information about the library, see the <ahref="https://quickdevelopment.github.io/wp-js/">documentation</a>.</p>
0 commit comments