HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/wp-content/plugins/jupiterx-core/includes/custom-fields/title-bar.php
<?php
/**
 * Add Jupiter Post Options > Title Bar meta options.
 *
 * @package JupiterX_Core\Custom_fields
 *
 * @since 1.9.0
 */

add_action( 'jupiterx_custom_field_post_types', 'jupiterx_add_title_bar_field' );
/**
 * Add title bar field to the new page/post/portfolio. Add due to prevent content creation rule.
 *
 * @since 1.9.0
 *
 * @return void
 */
function jupiterx_add_title_bar_field() {
	if ( ! class_exists( 'acf' ) ) {
		return;
	}
	$key    = 'field_jupiterx_post_title_bar';
	$parent = 'group_jupiterx_post';

	acf_add_local_field( [
		'key'    => "{$key}_subtitle",
		'parent' => $parent,
		'label'  => __( 'Subtitle', 'jupiterx-core' ),
		'name'   => 'jupiterx_title_bar_subtitle',
		'type'   => 'textarea',
		'rows'   => '3',
	] );
}