You've already forked wp-fedistream
WP FediStream - Stream music over ActivityPub Features: - Custom post types: Artist, Album, Track, Playlist - Custom taxonomies: Genre, Mood, License - User roles: Artist, Label - Admin dashboard with statistics - Frontend templates and shortcodes - Audio player with queue management - ActivityPub integration with actor support - WooCommerce product types for albums/tracks - User library with favorites and history - Notification system (in-app and email) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
776 B
PHP
39 lines
776 B
PHP
<?php
|
|
/**
|
|
* Widgets handler.
|
|
*
|
|
* @package WP_FediStream
|
|
*/
|
|
|
|
namespace WP_FediStream\Frontend;
|
|
|
|
// Prevent direct file access.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Registers and manages all plugin widgets.
|
|
*/
|
|
class Widgets {
|
|
|
|
/**
|
|
* Constructor.
|
|
*/
|
|
public function __construct() {
|
|
add_action( 'widgets_init', array( $this, 'register_widgets' ) );
|
|
}
|
|
|
|
/**
|
|
* Register all widgets.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register_widgets(): void {
|
|
register_widget( Widgets\RecentReleasesWidget::class );
|
|
register_widget( Widgets\PopularTracksWidget::class );
|
|
register_widget( Widgets\FeaturedArtistWidget::class );
|
|
register_widget( Widgets\NowPlayingWidget::class );
|
|
}
|
|
}
|