HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/breadsecret.com/wp-content/plugins/zeen-engine/inc/ip/ip.php
<?php
function zeen_engine_block_assets() {
	wp_register_script(
		'zeen-engine-block-ip-editor',
		plugins_url( 'build/index.js', __FILE__ ),
		array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-compose' ),
		'2.8.6'
	);
	wp_set_script_translations( 'zeen-engine-block-ip-editor', 'zeen-engine' );

	wp_register_style(
		'zeen-engine-block-ip-editor',
		plugins_url( 'build/index.css', __FILE__ ),
		array(),
		'2.8.6'
	);
}
add_action( 'enqueue_block_editor_assets', 'zeen_engine_block_assets' );

function zeen_engine_block() {
	register_block_type( 'zeen/block-inline-post', array(
		'editor_script' => 'zeen-engine-block-ip-editor',
		'editor_style'  => 'zeen-engine-block-ip-editor',
		'render_callback' => 'zeen_engine_render_inline',
		'attributes'      => array(
			'pid'             => array(
				'type' => 'string',
			),
			'title'             => array(
				'type' => 'string',
				'default' => esc_html__( 'See Also', 'zeen-engine' ),
			),

		),
	) );
}
add_action( 'init', 'zeen_engine_block' );

function zeen_engine_render_inline( $attr = '' ) {
	$pid = empty( $attr['pid'] ) ? '' : $attr['pid'];
	$title = empty( $attr['title'] ) ? '' : $attr['title'];
	if ( ! function_exists( 'zeen_post_inline' ) ) {
		return;
	}
	return zeen_post_inline( array( 'pid' => $pid, 'title' => $title ) );
}