Plugin Directory

Changeset 1425737


Ignore:
Timestamp:
05/27/2016 06:33:16 PM (10 years ago)
Author:
pedrolaxe
Message:

fix playerzbr_options

Location:
playerzbr/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • playerzbr/trunk/playerzbr.php

    r1425711 r1425737  
    5353 */
    5454
    55 add_action( 'init', 'plx_option' );
    56 
    57 function plx_option(){
     55add_action( 'init', 'Playerzbr_option' );
     56
     57function Playerzbr_option(){
    5858
    5959/**
     
    6969 */
    7070
    71 register_activation_hook( __FILE__, 'plx_install_hook' );
     71register_activation_hook( __FILE__, 'Playerzbr_install' );
    7272
    7373
     
    8585 */
    8686
    87 function plx_install_hook() {
     87function Playerzbr_install() {
    8888
    8989  if ( version_compare( PHP_VERSION, '5.2.1', '<' )
     
    9999  // e incluir um valor por defeito.
    100100
    101   add_option( 'plx_option', 'valor_por_defeito' );
     101  add_option( 'Playerzbr_option', 'Playerzbr_defeito' );
    102102
    103103}
  • playerzbr/trunk/uninstall.php

    r1043633 r1425737  
    55  die();
    66// Vamos remover as opções que criamos na instalação
    7 delete_option( 'plx_option' );
     7delete_option( 'Playerzbr_option' );
    88?>
Note: See TracChangeset for help on using the changeset viewer.