惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
Intezer
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
T
Tenable Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
P
Privacy International News Feed
IT之家
IT之家
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
博客园_首页
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
NISL@THU
NISL@THU
I
InfoQ
D
DataBreaches.Net
有赞技术团队
有赞技术团队
K
Kaspersky official blog
Security Latest
Security Latest
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AI
AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic

时空之歌

2024年加油! - 时空之歌 高一,中秋、国庆晚会 - 时空之歌 就要去高中报到了 - 时空之歌 在Docker上部署ubuntu系统 在Docker上部署Cloudreve云盘服务 - 时空之歌 电脑,坏了??? - 时空之歌 一个WordPress插件,用于使用短代码插入哔哩哔哩视频 - 时空之歌 《安娜的橱窗》一首挺好听的歌。 - 时空之歌 二战时间线及标志性事件 - 时空之歌
WordPress通过短代码插入bilibili视频 - 时空之歌
Space520 · 2023-05-08 · via 时空之歌

本文发布于 257 天前,最后更新于83天前,其中的信息可能已经有所发展或是发生改变,如有需要,请联系我([email protected])进行更新吖~

前言

Bilibili 是国内知名的视频分享平台,上面有很多精良而又有趣的视频。一些人喜欢(比如我)把B站视频通过iframe插入网页上,但代码大长(约230个字符)。于是为了方便大家,我堤供一个在WordPress通过短代码插入bilibili视频的教程。

更新日志

  • 2023/10/29 重写代码,修改了匹配bv号和av号规则,用法也改了
  • 2023/7/4 优化了代码,删掉了Bilibili视频高度和宽度控制,改为Bilibili视频自适应大小。

教程

一、

打开WordPress根目录下wp-content/themes/你正在使用的主题/functions.php文件

或者你在仪表盘的主题文件编辑器中打开functions.php文件

二、

复制下面的代码到functions.php文件的最后处

简码使用说明

介绍

该短代码可以插入Bilibili视频。

用法

[vbilibili]啥都行,只要有bv和av在这就行了[/vbilibili]

只要短代码包含bv号或av号就行了,可以有多个bv号和av号

参数

示例

[vbilibili]https://www.bilibili.com/video/BV1EX4y127J9/[/vbilibili]

[vbilibili]华为能挡子弹?Mate 60 Pro 碾压 跌落 实弹测试! - 哔哩哔哩https://www.bilibili.com/video/BV1L94y1p72w/[/vbilibili]

[vbilibili]BV1L94y1p72w[/vbilibili]

[vbilibili]BV1L94y1p72w,https://www.bilibili.com/video/BV1RN411w7Bv/[/vbilibili]


|´・ω・)ノ

ヾ(≧∇≦*)ゝ

(☆ω☆)

(╯‵□′)╯︵┴─┴

 ̄﹃ ̄

(/ω\)

∠( ᐛ 」∠)_

(๑•̀ㅁ•́ฅ)

→_→

୧(๑•̀⌄•́๑)૭

٩(ˊᗜˋ*)و

(ノ°ο°)ノ

(´இ皿இ`)

⌇●﹏●⌇

(ฅ´ω`ฅ)

(╯°A°)╯︵○○○

φ( ̄∇ ̄o)

ヾ(´・ ・`。)ノ"

( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃

(ó﹏ò。)

Σ(っ °Д °;)っ

( ,,´・ω・)ノ"(´っω・`。)

╮(╯▽╰)╭

o(*////▽////*)q

>﹏<

( ๑´•ω•) "(ㆆᴗㆆ)

😂

😀

😅

😊

🙂

🙃

😌

😍

😘

😜

😝

😏

😒

🙄

😳

😡

😔

😫

😱

😭

💩

👻

🙌

🖕

👍

👫

👬

👭

🌚

🌝

🙈

💊

😶

🙏

🍦

🍉

😣

Source: github.com/k4yt3x/flowerhd