Using add_theme_support inside a plugin

I’ve created a custom post type as a plugin and released it into the repository. One of the core features involves using a featured image. I’ve added thumbnail to $supports in register_post_type(), so the meta box shows up in the Administration Panel. I’m also hooking into after_setup_theme and calling add_theme_support( 'post-thumbnails' ), but I don’t think it’s taking affect.

Why wp_register_style() is important while I’m using a complete wp_enqueue_style()?

Currently I’m working on a theme, and did some styles and scripts enqueue. When enqueued the scripts, I used wp_register_script() first, and then enqueued with wp_enqueue_script() – because I got that’s the proper way of enqueuing the scripts. But in enqueuing the styles, I used only the wp_enqueue_style() with all its parameters. But just now … Read more