PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 7.2.1
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v7.2.1
7.2.2 7.2.1 7.2 7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 All 37 releases
← All changes | includes/class-mlsimport-activator.php +18 -1 6.0.4 → 7.2.1 View file →
@@ -1,5 +1,15 @@
1 -<?php
1 +<?php
2 +/**
3 + * Plugin activation handler.
4 + *
5 + * Defines Mlsimport_Activator, whose static activate() runs on plugin activation
6 + * (registered via register_activation_hook in mlsimport.php). It clears the cached
7 + * plugin data schema transient and creates the plugin's activity tracking table.
8 + *
9 + * @package MLSImport
10 + */
11 +// Abort if the file is accessed directly outside of WordPress.
2 12 if ( ! defined( 'ABSPATH' ) ) {
3 13 exit; // Exit if accessed directly
4 14 }
5 15
@@ -31,10 +41,17 @@
31 41 * Short Description. (use period)
32 42 *
33 43 * Long Description.
34 44 *
45 + * Runs once on plugin activation: clears the cached plugin-data schema transient
46 + * and ensures the activity tracking table exists.
47 + *
35 48 * @since 1.0.0
49 + * @return void
36 50 */
37 51 public static function activate() {
52 + // Drop any stale cached schema so it is rebuilt fresh.
38 53 delete_transient( 'mlsimport_plugin_data_schema' );
54 + // Create (or update) the activity tracking table.
55 + mlsimport_create_activity_table();
39 56 }
40 57 }