Plugin Directory

Changeset 1507132


Ignore:
Timestamp:
10/03/2016 06:44:07 AM (10 years ago)
Author:
0xbbc
Message:

Added register hook to init

Location:
dplayer-for-wp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dplayer-for-wp/tags/1.0.8/dplayer.php

    r1507117 r1507132  
    2323   
    2424    public static function init() {
     25        register_activation_hook( __FILE__, array( __CLASS__, 'dplayer_install' ) );
     26        register_deactivation_hook( __FILE__, array( __CLASS__, 'dplayer_uninstall' ) );
    2527        add_action( 'wp_head', array( __CLASS__, 'ready') );
    2628        add_action( 'wp_footer', array( __CLASS__, 'add_script' ) );
  • dplayer-for-wp/trunk/dplayer.php

    r1507117 r1507132  
    2323   
    2424    public static function init() {
     25        register_activation_hook( __FILE__, array( __CLASS__, 'dplayer_install' ) );
     26        register_deactivation_hook( __FILE__, array( __CLASS__, 'dplayer_uninstall' ) );
    2527        add_action( 'wp_head', array( __CLASS__, 'ready') );
    2628        add_action( 'wp_footer', array( __CLASS__, 'add_script' ) );
Note: See TracChangeset for help on using the changeset viewer.