PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.5.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.5.2
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / blocks / src / book-form / save.js
latepoint / blocks / src / book-form Last commit date
block.json 1 year ago edit.js 1 year ago index-min.js 1 year ago index.js 1 year ago save.js 1 year ago
save.js
24 lines
1 /**
2 * React hook that is used to mark the block wrapper element.
3 * It provides all the necessary props like the class name.
4 *
5 * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops
6 */
7 import { useBlockProps } from '@wordpress/block-editor';
8
9 /**
10 * The save function defines the way in which the different attributes should
11 * be combined into the final markup, which is then serialized by the block
12 * editor into `post_content`.
13 *
14 * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save
15 *
16 * @param {Object} props Properties passed to the function.
17 * @param {Object} props.attributes Available block attributes.
18 * @return {WPElement} Element to render.
19 */
20 export default function save( { attributes } ) {
21 const blockProps = useBlockProps.save();
22 return <div { ...blockProps }></div>;
23 }
24