PHP code example of pantheon-systems / pantheon-content-publisher-wordpress

1. Go to this page and download the library: Download pantheon-systems/pantheon-content-publisher-wordpress 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/ */

    

pantheon-systems / pantheon-content-publisher-wordpress example snippets


add_action('cpub_register_smart_components', function ($registry) {
    $registry->register(new My_Custom_Component());
});