PluginProbe ʕ •ᴥ•ʔ
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.6
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.6
2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 0.0.8 0.0.9 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.1.2 1.10.0 1.10.1 1.11.0 1.12.0 1.12.1 1.12.2 1.12.3 1.13.0 1.13.1 1.13.2 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.8.0 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.2 2.6.0
sureforms / inc / activator.php
sureforms / inc Last commit date
abilities 3 days ago admin 3 months ago ai-form-builder 1 month ago blocks 2 months ago compatibility 4 weeks ago database 3 days ago email 4 weeks ago fields 4 weeks ago global-settings 3 days ago lib 1 month ago migrator 2 months ago page-builders 4 weeks ago payments 3 days ago single-form-settings 2 months ago traits 2 months ago activator.php 1 year ago admin-ajax.php 3 days ago background-process.php 9 months ago client-logger.php 3 days ago create-new-form.php 4 months ago duplicate-form.php 3 days ago entries.php 4 weeks ago events-scheduler.php 2 years ago export.php 3 days ago field-validation.php 4 weeks ago form-restriction.php 2 months ago form-styling.php 1 month ago form-submit.php 3 days ago form-views.php 3 days ago forms-data.php 3 days ago frontend-assets.php 3 days ago generate-form-markup.php 3 days ago gutenberg-hooks.php 2 weeks ago helper.php 3 days ago learn.php 4 months ago onboarding.php 2 months ago post-types.php 3 days ago rest-api.php 3 days ago smart-tags.php 1 week ago submit-token.php 3 days ago translatable.php 1 month ago updater-callbacks.php 4 weeks ago updater.php 4 weeks ago
activator.php
50 lines
1 <?php
2 /**
3 * Sureforms flush rewrite rules.
4 *
5 * @package sureforms.
6 * @since 0.0.1
7 */
8
9 namespace SRFM\Inc;
10
11 use SRFM\Inc\Global_Settings\Email_Summary;
12 use SRFM\Inc\Traits\Get_Instance;
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly.
16 }
17
18 /**
19 * Activation Class.
20 *
21 * @since 0.0.1
22 */
23 class Activator {
24 use Get_Instance;
25
26 /**
27 * Activation handler function.
28 *
29 * @since 0.0.1
30 * @return void
31 */
32 public static function activate() {
33 $email_summary_options = get_option( 'srfm_email_summary_settings_options' );
34 $enable_email_summary = is_array( $email_summary_options ) ? $email_summary_options['srfm_email_summary'] : '';
35
36 if ( $enable_email_summary ) {
37 Email_Summary::schedule_weekly_entries_email();
38 }
39
40 /**
41 * Reset rewrite rules to avoid go to permalinks page
42 * through deleting the database options to force WP to do it
43 * because of on activation not work well flush_rewrite_rules()
44 */
45 delete_option( 'rewrite_rules' );
46
47 update_option( '__srfm_do_redirect', true );
48 }
49 }
50