Help me tidy up my widget code

Your Class Name: I’d prefix the class name to make collisions less likely– something like Your_Initials_Today_Video, or namespace it, but be aware that PHP namespacing requires a higher versions of PHP than WordPress requires. That could cause issues. Your Constructor: You can use __construct instead of Today_video for your constructor. WordPress no longer supports PHP … Read more

Placing video content into a sidebar

You can add a meta field along with your post which contains image/video fram url. Now write a plugin or some PHP code which access particular meta tag of a post. And display it. As an alternative you can use some plugin like amtyThumb

Change path/url of admin-bar.min.css

admin-bar.min.css is not registered via the normal wp_register_style channels. It, and the other default styles, are registered by wp_default_styles, which registers them by directly manipulation the $styles object, though I don’t know what good that is since there are no hooks and you shouldn’t be hacking core files. You should still be able to deregister … Read more