'VideoObject', '@id' => ! empty( $graphData->id ) ? aioseo()->schema->context['url'] . $graphData->id : aioseo()->schema->context['url'] . '#video', 'name' => ! empty( $graphData->properties->name ) ? $graphData->properties->name : get_the_title(), 'description' => ! empty( $graphData->properties->description ) ? $graphData->properties->description : aioseo()->schema->context['description'], 'contentUrl' => ! empty( $graphData->properties->contentUrl ) ? $graphData->properties->contentUrl : '', 'embedUrl' => ! empty( $graphData->properties->embedUrl ) ? $graphData->properties->embedUrl : '', 'thumbnailUrl' => ! empty( $graphData->properties->thumbnailUrl ) ? $graphData->properties->thumbnailUrl : '', 'uploadDate' => ! empty( $graphData->properties->uploadDate ) ? mysql2date( DATE_W3C, $graphData->properties->uploadDate, false ) : '' ]; if ( isset( $graphData->properties->familyFriendly ) ) { if ( ! empty( $graphData->properties->familyFriendly ) ) { $data['isFamilyFriendly'] = 'https://schema.org/True'; } else { $data['isFamilyFriendly'] = 'https://schema.org/False'; } } return $data; } }