Sindbad~EG File Manager
<?php
/**
* Plugin Name: Gutenify Map
* Plugin URI: https://gutenify.com
* Description: Map block.
* Version: 1.0.0
* Author: Gutenify
*
* @package gutenify
*/
defined( 'ABSPATH' ) || exit;
/**
* Load all translations for our plugin from the MO file.
*/
function gutenify_load_textdomain_block_map() {
load_plugin_textdomain( 'gutenify', false, basename( __DIR__ ) . '/languages' );
}
add_action( 'init', 'gutenify_load_textdomain_block_map' );
/**
* Registers all block assets so that they can be enqueued through Gutenberg in
* the corresponding context.
*
* Passes translations to JavaScript.
*/
function gutenify_register_block_map() {
// Register the block by passing the location of block.json to register_block_type.
register_block_type( __DIR__ );
if ( function_exists( 'wp_set_script_translations' ) ) {
/**
* May be extended to wp_set_script_translations( 'my-handle', 'my-domain',
* plugin_dir_path( MY_PLUGIN ) . 'languages' ) ). For details see
* https://make.wordpress.org/core/2018/11/09/new-javascript-i18n-support-in-wordpress/
*/
wp_set_script_translations( 'gutenify-block-map', 'gutenify' );
}
}
add_action( 'init', 'gutenify_register_block_map' );
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists