PHP code example of gebruederheitz / wp-async-posts-provider

1. Go to this page and download the library: Download gebruederheitz/wp-async-posts-provider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gebruederheitz / wp-async-posts-provider example snippets




use Gebruederheitz\WpAsyncPostsProvider\AsyncPostsProvider;

AsyncPostsProvider::getInstance()->init();

AsyncPostsProvider::getInstance()->init([
    'rendererTemplatePath' => 'template-parts/fancy/excerpt',
    'defaultPartial' => 'fancy-tile',
]);

use Gebruederheitz\WpAsyncPostsProvider\AsyncPostsProvider;