🚀 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
$

📄 transforms.js

📁 Path: ./wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/faq/assets/src/transforms.js
📊 Size: 619 B
🔒 Perm: 0644
📝 MIME: text/plain
/**
 * WordPress dependencies
 */
import { createBlock } from '@wordpress/blocks'

/**
 * Transform yoast faq block.
 *
 * @type {Array}
 */
export default {
	from: [
		{
			type: 'block',
			blocks: [ 'yoast/faq-block' ],
			transform: ( yoast ) => {
				const questions = yoast.questions.map( ( question ) => {
					return {
						title: question.jsonQuestion,
						content: question.jsonAnswer,
						visible: true,
					}
				} )

				const attributes = {
					titleWrapper: 'h3',
					questions,
					className: yoast.className,
				}

				return createBlock( 'rank-math/faq-block', attributes )
			},
		},
	],
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨