1, 'post_status' => 'publish' ]); if ( ! empty( $last_post ) ) { $title = $last_post[0]['post_title']; $time = get_the_time( 'Y-m-d H:i:s', $last_post[0]['ID'] ); return [ 'title' => $title, 'time' => $time ]; } } public static function last_plugin_activated() { return get_option('admintosh_last_activated_plugin'); } public static function thame_changed() { return get_option('admintosh_last_theme_change' ); } public static function user_created() { return get_option('admintosh_last_registered_user'); } }