Add a menu item to admin dashboard which isn’t a link? [duplicate]

You may want to look at adding admin style and then targeting the menu: function admin_style() { wp_enqueue_style(‘admin-styles’, get_template_directory_uri().’/admin.css’); } add_action(‘admin_enqueue_scripts’, ‘admin_style’); This is just an example: #menu-comments:before { border-top: 1px solid red; content: “”; display: block; margin-top: 10px; margin-bottom: 10px; width: 100%; } This adds a red divider above the “comments” menu, but adjust … Read more

How to add admin.php to WP Admin Menu Link

Looks you are adding pages the wrong way. Here how it should look inside the class: class My_Add_Menu_Pages { public function __construct() { add_action( ‘admin_menu’, array( $this, ‘my_custom_admin_pages’ ) ); } public function my_custom_admin_pages() { add_menu_page( ‘Social Networks Auto Poster’, ‘SNAP|AutoPoster’, ‘haveown_snap_accss’, ‘nxssnap’, array( $this, ‘showPage_accounts’ ) ); add_submenu_page( ‘nxssnap’, __( ‘Calendar View’, ‘social-networks-auto-poster-facebook-twitter-g’ ), … Read more

How to move “Collapse Menu” to top of admin bar?

Rule of thumb is do not modify any core WordPress files. Those in the root, wp-includes, wp-admin. You could do this easily with JavaScript: /** * Move the ‘Collapse menu’ item to the top of the admin menu * * @return void */ function wpse348570_move_collapse_menu() { ?> <script> if( jQuery( ‘#collapse-menu’ ).length ) { jQuery( … Read more

How to sorted Parent Page in WP-admin

You can change the order that your pages are displayed when using a default menu by using the Order field of the Page Attributes module. Let’s say you have three pages: About, Photos, Contact If you wanted About to appear first, you’d need to do the following: Go to Site → Pages in your dashboard … Read more

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