PHP code example of arnaudban / wp-doc-viewer

1. Go to this page and download the library: Download arnaudban/wp-doc-viewer 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/ */

    

arnaudban / wp-doc-viewer example snippets


add_filter('mdv/doc-paths', static function( $path){

    $path[] = plugin_dir_path(__FILE__) . 'doc';
    return $path;
} );