Add a link to the Admin menu

You can intercept the global $submenu var and add the desired elements: add_action(‘admin_menu’, ‘add_custom_submenus’, 999); function add_custom_submenus() { global $submenu; $submenu[‘edit.php’][] = array( __(‘Published’), // menu title ‘edit_posts’, // menu cap ‘edit.php?post_status=publish&post_type=post’ // menu link ); $submenu[‘edit.php’][] = array( __(‘Scheduled’), ‘edit_posts’, ‘edit.php?post_status=future&post_type=post’ ); $submenu[‘upload.php’][] = array( __(‘Unattached’), ‘upload_files’, ‘upload.php?detached=1’ ); }

Shortcut to widget/sidebar editing on the admin menu?

I think that using standard WP featurs there’s no shortcut. But you can workaround using a custom widget. As example create a very simple widget, something like: class MyPageWidget extends WP_Widget { function __construct() { parent::__construct( ‘MyPageWidget’, ‘My Page Widget’ ); } function widget( $args ) { $page = get_page_by_path(‘sidebar-page’); if ( ! empty($page) ) … Read more

How to change the default url for ‘Posts’ link?

Probably the below code should help you. function myadminurl() { // generate url path to Posts -> Categories page in the admin and force http $url = admin_url( ‘edit-tags.php?taxonomy=category’, ‘http’ ); echo $url; } add_action( ‘init’, ‘myadminurl’ ); Please refer this codex for more information.

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