PHP code example of imagewize / moiraine-child
1. Go to this page and download the library: Download imagewize/moiraine-child 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/ */
imagewize / moiraine-child example snippets
function moiraine_child_register_pattern_categories() {
// Register existing parent theme categories again in the child theme
// This ensures your patterns can be added to these categories
register_block_pattern_category(
'moiraine/features',
array('label' => __('Features', 'moiraine-child'))
);
register_block_pattern_category(
'moiraine/pages',
array('label' => __('Pages', 'moiraine-child'))
);
// Add more parent categories as needed
}
add_action('init', 'moiraine_child_register_pattern_categories', 5);