Plugin Directory

Changeset 1233958


Ignore:
Timestamp:
08/30/2015 05:36:23 AM (11 years ago)
Author:
ronshe
Message:

Jump to plugin registration and options page right after activation.

Location:
pixterme/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pixterme/trunk/pixter-me.php

    r1233649 r1233958  
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
    12 Version: 1.4
     12Version: 1.5
    1313
    1414Copyright 2015 Pixter Media
     
    4444}
    4545register_activation_hook( __FILE__, 'pixter_me_activate' );
     46
     47function pixter_me_activation_redirect( $plugin )
     48{
     49    if( $plugin == plugin_basename( __FILE__ ) )
     50        exit( wp_redirect( admin_url( 'admin.php?page=pixter_me_plugin' ) ) );
     51}
     52add_action( 'activated_plugin', 'pixter_me_activation_redirect' );
     53
    4654
    4755//  function pixter_me_init()
  • pixterme/trunk/readme.txt

    r1233649 r1233958  
    77Tags: image, print, photographer, picture, store, shop
    88Requires at least: 3.6
    9 Tested up to: 4.2.2
    10 Stable tag: 1.4
     9Tested up to: 4.3
     10Stable tag: 1.5
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
     75= 1.5 =
     76* Jump to plugin options page right after activation.
     77
    7578= 1.4 =
    7679* Add ability to choose which pages will enable pixter-me (default: all).
Note: See TracChangeset for help on using the changeset viewer.