PHP code example of azi / raskoh

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

    

azi / raskoh example snippets

 

$music = new Raskoh\PostType("Music");
$music->register();

$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy('Singer')->register();
 PostType::taxonomy($name, $filters = false)

$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy('Singer', true)->register();

$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy(['singer','genre'])->register();

$music = Raskoh\PostType::getInstance("Music");
$music->taxonomy('Singer')->setIcon('dashicons-format-audioy')->register();

$CPT = Raskoh\PostType::getInstance();
$CPT->set{ArgumentName}