🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-06 21:46:08 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
plugins
/
easy-accordion-free
/
src
/
blocks
/
shortcode
📍 /home/eliteewa/public_html/wp-content/plugins/easy-accordion-free/src/blocks/shortcode
🔄 Refresh
✏️
Editing: index.js
Writable
import { __ } from "@wordpress/i18n"; import { registerBlockType } from "@wordpress/blocks"; import { ShortcodeBlockIcon } from "./icons"; import ShortcodeEdit from "./edit"; const blockOptions = { apiVersion: 3, icon: <ShortcodeBlockIcon />, category: "sp-easy-accordion-pro", textdomain: "easy-accordion-free", name: "sp-easy-accordion-pro/shortcode", title: __("Easy Accordion Shortcode", "easy-accordion-free"), description: __("Insert Easy Accordion classic accordions using the shortcode block.", "easy-accordion-free"), supports: { align: ["wide", "full"], customClassName: false, }, example: { attributes: { preview: true, }, }, edit: ShortcodeEdit, save: () => null, }; const registerBlockTypeFn = () => { if (sp_eab_localize_data?.activeBlockList?.includes(blockOptions?.name)) { const shortCodeList = sp_easy_accordion_pro?.shortCodeList; if (shortCodeList) { registerBlockType(blockOptions.name, blockOptions); } } }; registerBlockTypeFn();
💾 Save Changes
❌ Cancel