文件操作 - block.json
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/build/Campaigns/Blocks/CampaignGrid/block.json
编辑文件内容
{ "$schema": "https://json.schemastore.org/block.json", "apiVersion": 3, "name": "givewp/campaign-grid", "version": "1.0.0", "title": "Campaign Grid", "category": "give", "description": "Insert an existing campaign into the page.", "supports": { "align": [ "wide", "full", "left", "center", "right" ] }, "attributes": { "layout": { "type": "string", "default": "full", "enum": [ "full", "double", "triple" ] }, "showImage": { "type": "boolean", "default": true }, "showDescription": { "type": "boolean", "default": true }, "showGoal": { "type": "boolean", "default": true }, "sortBy": { "type": "string", "default": "date", "enum": [ "date", "amount", "donations", "donors" ] }, "orderBy": { "type": "string", "default": "desc", "enum": [ "asc", "desc" ] }, "filterBy": { "type": "array", "default": [] }, "perPage": { "type": "number", "default": "6" }, "showPagination": { "type": "boolean", "default": true } }, "example": {}, "textdomain": "give", "viewScript": "file:../../../../build/campaignGridApp.js", "viewStyle": "file:../../../../build/campaignGridApp.css", "render": "file:./render.php" }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件