at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
assets
/
lib
/
gutenberg_blocks.js
run:
R
W
Run
SocialShare
DIR
2026-04-14 05:34:26
R
W
Run
countdown
DIR
2026-04-14 05:34:26
R
W
Run
plyr
DIR
2026-04-14 05:34:26
R
W
Run
select2
DIR
2026-04-14 05:34:26
R
W
Run
tinymce
DIR
2026-04-14 05:34:25
R
W
Run
Chart.bundle.min.js
176.16 KB
2026-04-14 05:34:26
R
W
Run
Delete
Rename
gutenberg_blocks.js
1.66 KB
2026-04-14 05:34:26
R
W
Run
Delete
Rename
mce-button.js
4.4 KB
2026-04-14 05:34:26
R
W
Run
Delete
Rename
error_log
up
📄
gutenberg_blocks.js
Save
var el = wp.element.createElement, registerBlockType = wp.blocks.registerBlockType, withSelect = wp.data.withSelect; /** * Block for student registration * */ registerBlockType('tutor-gutenberg/student-registration', { title: 'Student Registration', icon: 'welcome-learn-more', category: 'tutor', edit: function (props) { var dataHtml; jQuery.ajax({ url: ajaxurl, type: 'POST', async: false, data: { shortcode: 'tutor_student_registration_form', action: 'render_block_tutor' }, success: function (response) { dataHtml = response.data; }, }); return el('div', { dangerouslySetInnerHTML: { __html: dataHtml } }) }, save: function () { return null; //return el( 'div', { }, '[tutor_student_registration_form]' ); }, }); /** * Block for instructor registration * */ registerBlockType('tutor-gutenberg/instructor-registration', { title: 'Instructor Registration', icon: 'welcome-learn-more', category: 'tutor', edit: function (props) { var dataHtml; jQuery.ajax({ url: ajaxurl, type: 'POST', async: false, data: { shortcode: 'tutor_instructor_registration_form', action: 'render_block_tutor' }, success: function (response) { dataHtml = response.data; }, }); return el('div', { dangerouslySetInnerHTML: { __html: dataHtml } }) }, save: function () { return null; }, });