How to create plugin list groups?

Displaying some custom text there can be done using views_plugins filter: add_filter(‘views_plugins’, ‘add_plugins_views’, 10, 1); function add_plugin_views($views) { $views[‘foo’] => ‘bar (?)’; return $views; } If what you need is actually setting a property for all plugins and display a count of this custom property you might want to take a look at WP_Plugins_List_Table.

Adding hero images to blog posts

You can use the Advanced Custom Fields plugin for that. Beside that, ACF provides you more field types you can use. And instead of showing the featured image in single.php, you can echo the one uploaded in your additional field.

Activate plugins by a theme’s functions.php?

Write This Code On theme Function.php function run_activate_plugin( $plugin ) { $current = get_option( ‘active_plugins’ ); $plugin = plugin_basename( trim( $plugin ) ); if ( !in_array( $plugin, $current ) ) { $current[] = $plugin; sort( $current ); do_action( ‘activate_plugin’, trim( $plugin ) ); update_option( ‘active_plugins’, $current ); do_action( ‘activate_’ . trim( $plugin ) ); do_action( … Read more

_e in wordpress +

You can write like below: <?php /* translators: %s: home page URL */ printf( __( ‘We are sorry, but there is nothing here! You might even call this a 404 Page Not Found error message, which is exactly what it is. The page you are looking for either does not exist, or the URL you … Read more