Display Author Registration Date – WordPress Development Stack Exchange

In author archive, I want to show author registration date in the following format:

January 16, 2021

I have found this code:

$user_ID = $post->post_author;
echo the_author_meta( 'user_registered', $user_ID );

But its output format is:

2021-01-16 10:40:52

How can I strip off time and get my desired format?

I am using date format F j, Y

functions – Edit Woocommerce Subscription Start Date + Frequency at Checkout

I have a Woocommerce site running Woocommerce Subscriptions plugin.

The site only has one simple subscription, limited to one per user. I want to allow the user to set their own start time and subscription frequency, based on selections made in a dropdown box added during the checkout process.

I have added the checkout fields correctly, and they are simple select boxes:

    <select name="frequency" id="choose_frequency">
       <option value="week">Weekly</option>
       <option value="2week">Fortnightly</option>
       <option value="monthly">Monthly</option>

    <select name="start-date" id="sub_start_date">
        <option value="22 Apr 2021">Thursday, 22 April 2021</option>
        <option value="29 Apr 2021">Thursday, 29 April 2021</option>
        <option value="6 May 2021">Thursday, 6 May 2021</option>

I need to get the value, convert it to the correct meta, and then update the subscription before it has been created.

I’ve tried to update the meta using woocommerce_checkout_update_order_meta:

//Update the order meta with custom fields values
add_action('woocommerce_checkout_update_order_meta', 'customise_checkout_field_update_order_meta');
function customise_checkout_field_update_order_meta($order_id){
    $subscriptions_ids = wcs_get_subscriptions_for_order( $order_id );
    foreach( $subscriptions_ids as $subscription_id => $subscription_obj ){
        update_post_meta($subscription_id, '_schedule_start',date('Y-m-d h:i:s',$_POST('sub_start_date')));

and also tried wcs_create_subscription:

// set start subscription date on checkout page
add_action('wcs_create_subscription', 'cc_wcs_create_subscription');
function cc_wcs_create_subscription($subscription){
    $order_id = $subscription->order->id;
    $subscription_id = $subscription->get_id();
    if($subscription_id  && $_POST('sub_start_date')){
                update_post_meta($subscription_id, '_schedule_start',date('Y-m-d h:i:s',$_POST('sub_start_date')));

… I’ve even tried updating the frequency with AJAX:

    var cur_val = jQuery(this).val();
// update subscription frequency on checkout page
function cc_update_product_subscription(){
    if($_POST('cur_val') == 'week'){
    if($_POST('cur_val') == '2week'){
    if($_POST('cur_val') == 'monthly'){

Nothing seems to be working. The checkout is still processing through to completion, but the subscription details are not updated to reflect those selected by the user. What am I doing wrong?

9 – How to add filter criteria by current date in views

I am using Drupal 9 and have a content type with a field “Publish until” (datetime).
I want to add a filter in views that it will compare the date in this field with current date.
I found a solution here for Drupal 8
Views filter criteria date field is greater than current date

However, my screen looks a bit different:
enter image description here

To be more specific, I don’t have a “Value type” which seems to be necessary in my case.
Am I missing any module that should be enabled?
Or is it related to the Drupal 9 itself?

If there is any another approach to solve this problem with filtering I will be glad to know it.

Change Old WordPress Post Date Year

I have old WordPress posts that were published way back in 2017, 2018, and 2019. I would like to republish this content. Basically, what I want is that all content from 2017 to be republished in 2021, 2018 in 2022, and 2019 in 2023. Is there any possible way I can do this without doing some changes to the database? Is it possible to have a function that I can put in my functions.php to achieve this goal?