✏️ 正在编辑: register-form-hooks.js
路径:
/home/eldalyfu/public_html/wp-content/plugins/jet-engine/assets/js/admin/register-form-hooks.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
( () => { const { applyFilters } = wp.hooks; const notifications = applyFilters( 'jet.engine.register.notifications', [] ); const formFields = applyFilters( 'jet.engine.register.fields', [] ); const metaBoxes = applyFilters( 'jet.engine.register.metaBoxes', [] ); notifications.forEach( NotificationComponent => { Vue.component( `jet-engine-notification-${ NotificationComponent.name }`, NotificationComponent ); } ); formFields.forEach( FieldComponent => { Vue.component( `jet-engine-field-${ FieldComponent.name }`, FieldComponent ); } ); metaBoxes.forEach( BoxComponent => { new Vue({ el: `#jet-engine-meta-box-${ BoxComponent.name }`, template: '<BoxComponent />', components: { BoxComponent } }); } ) } )()
💾 保存文件
← 返回文件管理器