I want to add any user in a database only for 30 days trial plan. I have no idea how to server check status of user and disable if his plan is expires.
I need to know how to add time at register time. I also want a reminder email to every user if they are near to plan expiration
anybody please
Thank You
m looking for WordPress code and found daily , hourly function provided by wordpress
register_activation_hook( __FILE__, 'prefix_activation' );
function prefix_activation() {
wp_schedule_event( time(), 'hourly', 'prefix_hourly_event_hook' );
}
add_action( 'prefix_hourly_event_hook', 'prefix_do_this_hourly' );
function prefix_do_this_hourly() {
// do something every hour
}
this is working for me ...