add admin menu link custom wp
add_action( 'admin_menu', 'register_custom_menu_link' );
/**
* @author Brad Dalton
* @example http://wpsites.net/wordpress-admin/add-top-level-custom-admin-menu-link-in-dashboard-to-any-url/
* @copyright 2014 WP Sites
*/
function register_custom_menu_link(){
add_menu_page(
'custom menu link',
'Your Menu Link',
'manage_options',
'any-url',
'wpsites_custom_menu_link',
'dashicons-external', 3
);
}
function wpsites_custom_menu_link(){
wp_redirect( 'http://www.example.com', 301 );
exit;
}
Also in PHP:
- Laravel DB Cache
- catch exception php
- config cache clear in laravel
- code php ajout heure
- carbon date from format
- case statement in php
- a non well formed numeric value encountered
- 10 min sleep php
- ALTER table migrations
- Create image data URIs (base64) using PHP Raw
- check if a string contain a substring php
- base64 to image
- afiseaza id-ul sesiunii php
- different date format php
- display success message after form submit laravel
- check if home page wordpress
- die php prnint error
- file in array
- add_filter wordpress
- ci db query error
- consol log put in php
- artisan run seeder
- create symfony project
- dateformat j/m/a php