The Man Who's Walking
“There are few things more pathetic than those who have lost their curiosity and sense of adventure, and who no longer care to learn.”

设置音乐小控件自动播放

首先连接上服务器,进入/home/www/htdocs/wp-includes/widgets/ 路径,打开 class-wp-widget-media-audio.php 文件。

aa

大概在71行左右,添加以下代码

'autoplay' => array(
    'type' => 'string',
    'enum' => array( 'none', 'auto', 'metadata' ),
    'default' => 'none',
    'description' => __( 'Autoplay' ),
),

Share

You may also like...

发表评论