| 开发者 | bunstream |
|---|---|
| 更新时间 | 2026年11月11日 09:06 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[bunstream id="VIDEO_UUID"], with optional max-width="800px" or width="100%".[bunstream id="VIDEO_UUID"].Yes. The videos are stored and played by BunStream, so the plugin does nothing without an account.
Check that your site's domain is in the allowed domains in BunStream. The settings screen warns you when it is missing.
The lesson link carries the student's id, so it must not be cached for signed-in students. Most cache plugins skip signed-in users by default, and the plugin asks them to skip pages that carry a student id.
Use the bunstream_student_id filter:
add_filter( 'bunstream_student_id', function ( $id, $user ) { return get_user_meta( $user->ID, 'student_code', true ); }, 10, 2 );