🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 save.js

📁 Path: ./wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/faq/assets/src/save.js
📊 Size: 1001 B
🔒 Perm: 0644
📝 MIME: text/plain
/**
 * External dependencies
 */
import { isEmpty } from 'lodash'

/**
 * WordPress dependencies
 */
import { RichText, useBlockProps } from '@wordpress/block-editor'

/**
 * Save block for display on front
 *
 * @param {Object} props This component's props.
 */
export default ( props ) => {
	const { questions, titleWrapper } = props.attributes

	if ( isEmpty( questions ) ) {
		return null
	}

	return (
		<div { ...useBlockProps.save() }>
			{ questions.map( ( question, index ) => {
				if (
					isEmpty( question.title ) ||
					isEmpty( question.content ) ||
					false === question.visible
				) {
					return null
				}

				return (
					<div className="rank-math-faq-item" key={ index }>
						<RichText.Content
							tagName={ titleWrapper }
							value={ question.title }
							className="rank-math-question"
						/>

						<RichText.Content
							tagName="div"
							value={ question.content }
							className="rank-math-answer"
						/>
					</div>
				)
			} ) }
		</div>
	)
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨