Add button in admin columns

You are looking code to add a column next to short link. It’s pretty much simple. There are two things here. You can add it for specific post type or common to all the post types you have. // add a thumbnail column to the edit posts screen function kv_post_thumbnail_column($cols) { $cols[‘thumbnail’] = __(‘Thumbnail’, ‘1stopwebsolution’); … Read more

Get content of publish box

add_action( ‘post_submitbox_misc_actions’, ‘show_current_filter’ ); add_action( ‘post_submitbox_start’, ‘show_current_filter’ ); function show_current_filter() { $post = get_post(); print ‘<pre>’ . $post->ID . ‘ : ‘ . current_filter() . ‘</pre>’; } https://codex.wordpress.org/Plugin_API/Action_Reference/post_submitbox_misc_actions https://developer.wordpress.org/reference/hooks/post_submitbox_start/

Signed-in as admin on just part of the site

I discovered that by adding a call to get_currentuserinfo(); in header.php the problem appears to be solved. I still do not know why it happened, but at least this is a working solution for anyone else who happens to have this problem. Note: Following @jgraup’s suggestion above, I’m posting this as an answer. However, I … Read more

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