Plugin Directory

Changeset 3031964


Ignore:
Timestamp:
02/06/2024 05:50:42 AM (2 years ago)
Author:
jitendra742744
Message:

Added activation hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-gallery-with-filter/trunk/simple-gallery-with-filter.php

    r3030976 r3031964  
    684684
    685685
     686
     687// Register activation hook
     688register_activation_hook(__FILE__, 'sgwf_plugin_activation');
     689function sgwf_plugin_activation() {
     690    $siteurl = get_site_url();
     691    $sdate = date('d M Y');
     692    $autmail ='jitendra.wd@gmail.com';
     693    $authsub='A user activated plugin - Simple Gallery with Filter';
     694    $autmsg='Dear Author, A user activate your plugin url is - '. $siteurl.' | Date - '.$sdate;
     695    wp_mail($autmail, $authsub, $autmsg);
     696}
     697
    686698?>
Note: See TracChangeset for help on using the changeset viewer.