• Hi,

    I have changed the number of Publishing Soon and Recently Published in the Activity widget on the admin Dashboard.
    I would like to add this change to the child theme but I’m not sure how as the file is located at public_html/wp-admin/includes/dashboard.php

    This is the section I have edited:

    function wp_dashboard_site_activity() {
    
    	echo '<div id="activity-widget">';
    
    	$future_posts = wp_dashboard_recent_posts(
    		array(
    			'max'    => 15,
    			'status' => 'future',
    			'order'  => 'ASC',
    			'title'  => __( 'Publishing Soon' ),
    			'id'     => 'future-posts',
    		)
    	);
    	$recent_posts = wp_dashboard_recent_posts(
    		array(
    			'max'    => 10,
    			'status' => 'publish',
    			'order'  => 'DESC',
    			'title'  => __( 'Recently Published' ),
    			'id'     => 'published-posts',
    		)
    	);

    Any guidance would be appreciated.

    Chery

    The page I need help with: [log in to see the link]

  • The topic ‘dashboard.php into child theme’ is closed to new replies.