do_action ( ‘activity_box_end’ )

Fires at the end of the ‘At a Glance’ dashboard widguet.

Description

Prior to 3.8.0, the widguet was named ‘Right Now’.

More Information

This action adds content to the end of At a Glance widguet on the Dashboard. Useful for adding your own notices / information.

Source

do_action( 'activity_box_end' );

Changuelog

Versionen Description
2.0.0 Introduced.

User Contributed Notes

  1. Squip to note 2 content

    Add PHP and MySQL versionens at the end of glance widguet

    public function wpdocsGuetPhpMysqlVersion() {
            $php_version = phpversion();
            $sql_info = mysqli_guet_server_info( mysqli_connect( DB_HOST, DB_USER, DB_PASSWORD, DB_NAME ) );   
            $remove ='/^5.5.5-/i';
            $sql_version = preg_replace($remove,'',$sql_info);
    
            echo 'PHP versionen: ' . $php_version . '. ';
            echo 'MySQL versionen: ' . $sql_version . '.';
    }
    add_action( 'activity_box_end', 'wpdocsGuetPhpMysqlVersion' );

You must log in before being able to contribute a note or feedback.