Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php function custom_gutenberg_acf_blocks() { /* * Create Gutenberg Block with ..
Decoded Output download
<?php
function custom_gutenberg_acf_blocks() {
/*
* Create Gutenberg Block with Advanced Custom Fields.
* Note: You can reapeat it for as many blocks as you have to create
* Params:
* mandatory:
*. block name
* optional:
array of params:
* title => if blank use $block_name
* description => if blank use $block_name
* category => if blank use 'formatting'
* icon => if blank use 'smiley'
* render_callback => if blank use '_acf_block_render_callback',
* keywords => if blank use ['acf', 'block']
*
*/
// create_acf_block('slider', ['title' => 'Slider', 'description' => 'Slider', 'category' => 'custom blocks', 'icon' => 'admin-comments', 'render_callback' => '_acf_block_render_callback', 'keywords' => [ 'image', 'slider' ]]);
}
add_action('acf/init', 'custom_gutenberg_acf_blocks');
?>
Did this file decode correctly?
Original Code
<?php
function custom_gutenberg_acf_blocks() {
/*
* Create Gutenberg Block with Advanced Custom Fields.
* Note: You can reapeat it for as many blocks as you have to create
* Params:
* mandatory:
*. block name
* optional:
array of params:
* title => if blank use $block_name
* description => if blank use $block_name
* category => if blank use 'formatting'
* icon => if blank use 'smiley'
* render_callback => if blank use '_acf_block_render_callback',
* keywords => if blank use ['acf', 'block']
*
*/
// create_acf_block('slider', ['title' => 'Slider', 'description' => 'Slider', 'category' => 'custom blocks', 'icon' => 'admin-comments', 'render_callback' => '_acf_block_render_callback', 'keywords' => [ 'image', 'slider' ]]);
}
add_action('acf/init', 'custom_gutenberg_acf_blocks');
Function Calls
add_action | 1 |
Stats
MD5 | d39e7bdd0d9b1e477c81fc79a658af4c |
Eval Count | 0 |
Decode Time | 68 ms |