/* Change the completed scheduled tasks storage to 1 week Original doc link: https://wpforms.com/docs/how-to-troubleshoot-action-scheduler-issues-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function custom_as_retention_period() { return WEEK_IN_SECONDS; } add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );Continue reading
define(‘ALLOW_UNFILTERED_UPLOADS’, true);Continue reading
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get the user email from the order $order_email = $order->billing_email; // check if there are any users with the billing email as user or email…Continue reading
/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/styling-your-forms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_disabled’, ‘__return_false’ );Continue reading
/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/how-to-add-a-background-image-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_hidden’, ‘__return_false’ );Continue reading
/* Decrease the retention period to one week for the Action Scheduler Original doc link: https://wpforms.com/docs/how-to-troubleshoot-action-scheduler-issues-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function custom_as_retention_period() { return WEEK_IN_SECONDS; } add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );Continue reading
add_filter( ‘the_title’, function ( $title, $id ) { if ( ! is_admin() && is_single( $id ) ) { $number_of_days = 7; $post_date = get_the_date( ‘U’, $id ); $current_date = current_time( ‘timestamp’ ); $date_diff = $current_date – $post_date; if ( $date_diff…Continue reading
/** Don’t allow date to be selected after maxDate Original doc link: https://wpforms.com/developers/customize-the-date-time-field-date-options/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_limit_date_picker() { ?>Continue reading
/* Modify the login URL to redirect to a custom login page. Original doc link: https://wpforms.com/how-to-create-a-custom-login-form-for-improved-site-branding/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function sulliesflowers_custom_login_url( $login_url, $redirect, $force_reauth ) { // Change here your login page url $login_url = ‘https://sulliesflowers.com/login/’; if…Continue reading
function redirect_404_to_home() { if (is_404()) { wp_redirect(home_url()); exit(); } } add_action(‘template_redirect’, ‘redirect_404_to_home’);Continue reading