1. Go to this page and download the library: Download itmar/block-class-package 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/ */
itmar / block-class-package example snippets
$block_entry = new \Itmar\BlockClassPakage\ItmarEntryClass();
add_action('init', function () use ($block_entry) {
$block_entry->block_init('text-domain', __FILE__);
});
$block_entry = new \Itmar\BlockClassPakage\ItmarEntryClass();
add_action('enqueue_block_assets', function () use ($block_entry) {
$block_entry->enqueueCommonStyles(__FILE__, true, "itmar-block-packages");
});
add_action('wp_enqueue_scripts', function () use ($block_entry) {
$block_entry->enqueueCommonStyles(__FILE__, false, "itmar-block-packages");
});
$block_access = new \Itmar\BlockClassPakage\ItmarAccessClass();
$count = get_post_count()
$block_access = new \Itmar\BlockClassPakage\ItmarAccessClass();
add_action('template_redirect', array($block_access, 'set_post_count'));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.