function wporg_add_dashboard_widgets() { wp_add_dashboard_widget( 'allpages', // Widget slug. esc_html__( 'All Pages', 'wporg' ), // Title. 'wp_list_pages' // Display function. ); } add_action( 'wp_dashboard_setup', 'wporg_add_dashboard_widgets' );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter