for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// Exit if access directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Add Custom Block Category for Give blocks
*/
function give_blocks_category( $categories, $post ) {
$post
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return array_merge(
$categories,
array(
'slug' => 'give',
'title' => __( 'Give', 'give' ),
),
)
);
add_filter( 'block_categories', 'give_blocks_category', 10, 2 );
* Blocks
require_once GIVE_PLUGIN_DIR . 'blocks/donation-form/class-give-donation-form-block.php';
require_once GIVE_PLUGIN_DIR . 'blocks/donation-form-grid/class-give-donation-form-grid-block.php';
require_once GIVE_PLUGIN_DIR . 'blocks/donor-wall/class-give-donor-wall.php';
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.