This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Player::get_data_attributes()
Return
(string[])
Source
File: includes/libs/player/player.class.php
private function get_data_attributes(){ $result = []; // loop attributes foreach( $this->options as $key=>$value ){ $result[] = sprintf( 'data-%s="%s"', $key, $value ); } $result[] = sprintf( 'data-video_id="%s"', $this->post->video_id ); return implode(' ', $result); }