How to generate expiring URL of the page?

This plugin fits most of the requirements that you need: https://wordpress.org/plugins/public-post-preview/ It allows you to share a preview of the page to anyone with the link. You can modify the expiry time with a filter. add_filter( ‘ppp_nonce_life’, ‘my_nonce_life’ ); function my_nonce_life() { return 60 * 60 * 24 * 1; // 1 day }

Update user role for expired membership

If you need to get the value of a field in a custom database table you can try using an SQL query. You’ll have to check the column or table name to construct final version of the query. add_action( ‘profile_update’, ‘my_profile_update’, 10, 2 ); function my_profile_update( $user_id, $old_user_data ) { global $wpdb; $status = $wpdb->get_var( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)