PHP code example of premmerce / wordpress-sdk

1. Go to this page and download the library: Download premmerce/wordpress-sdk 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/ */

    

premmerce / wordpress-sdk example snippets


    $fileManager = new FileManager($mainFile);
    
    //V2
    $fileManager = new FileManager($mainFile, $templatePath);


$fileManager->


$rendered = $fileManager->


$url = $fileManager->locateAsset('admin/css/style.css');

wp_enqueue_style('my_style', $fileManager->locateAsset('front/css/style.css'));



$notifier->push('Message text', AdminNotifier::SUCCESS, true)



$notifier->flash('Message text', AdminNotifier::SUCCESS, true)