<?php

if ( ! function_exists( 'theaisle_elated_map_post_link_meta' ) ) {
	function theaisle_elated_map_post_link_meta() {
		$link_post_format_meta_box = theaisle_elated_create_meta_box(
			array(
				'scope' => array( 'post' ),
				'title' => esc_html__( 'Link Post Format', 'theaisle' ),
				'name'  => 'post_format_link_meta'
			)
		);
		
		theaisle_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_post_link_link_meta',
				'type'        => 'text',
				'label'       => esc_html__( 'Link', 'theaisle' ),
				'description' => esc_html__( 'Enter link', 'theaisle' ),
				'parent'      => $link_post_format_meta_box
			)
		);
	}
	
	add_action( 'theaisle_elated_action_meta_boxes_map', 'theaisle_elated_map_post_link_meta', 24 );
}