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.

edit-comments.php in Admin – how to change ‘Comments’ title?

I think you need to change ‘Comments’ to ‘something’ but it from admin side. Please follow steps: 1> Go to Appearance -> Editor in your WordPress dashboard (In the list of theme files, on the right, click on “Theme Functions” to open your functions.php file) 2> Enter the following code in your functions.php file: add_filter(‘genesis_title_comments’, … Read more

Display read only info on admin, custom post page

add_action( ‘edit_form_after_title’, ‘my_edit_form_after_title’); function my_edit_form_after_title($post) { $post_types = array( ‘page’ ); // post type / s $templates = array( ‘template-custom.php’ ); // not edit 😀 if( !in_array( $post->post_type, $post_types) ) return; if( !in_array( get_page_template_slug(), $templates) ) return; global $_wp_post_type_features; foreach ($post_types as $post_type) { if( isset($_wp_post_type_features[ $post_type ][‘editor’]) ) { unset($_wp_post_type_features[ $post_type ][‘editor’]); // we … Read more

How to access variables from one plugin in another

This is the answer to the main question. You cannot access other plugin’s variables. If they’re programmed using Object Oriented Programming pattern, then maybe you will be able to access a few public variables. But it is not the standard WordPress way. The best way to do it is by using actions and filters. If … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)