Changeset 1425737
- Timestamp:
- 05/27/2016 06:33:16 PM (10 years ago)
- Location:
- playerzbr/trunk
- Files:
-
- 2 edited
-
playerzbr.php (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
playerzbr/trunk/playerzbr.php
r1425711 r1425737 53 53 */ 54 54 55 add_action( 'init', ' plx_option' );56 57 function plx_option(){55 add_action( 'init', 'Playerzbr_option' ); 56 57 function Playerzbr_option(){ 58 58 59 59 /** … … 69 69 */ 70 70 71 register_activation_hook( __FILE__, ' plx_install_hook' );71 register_activation_hook( __FILE__, 'Playerzbr_install' ); 72 72 73 73 … … 85 85 */ 86 86 87 function plx_install_hook() {87 function Playerzbr_install() { 88 88 89 89 if ( version_compare( PHP_VERSION, '5.2.1', '<' ) … … 99 99 // e incluir um valor por defeito. 100 100 101 add_option( ' plx_option', 'valor_por_defeito' );101 add_option( 'Playerzbr_option', 'Playerzbr_defeito' ); 102 102 103 103 } -
playerzbr/trunk/uninstall.php
r1043633 r1425737 5 5 die(); 6 6 // Vamos remover as opções que criamos na instalação 7 delete_option( ' plx_option' );7 delete_option( 'Playerzbr_option' ); 8 8 ?>
Note: See TracChangeset
for help on using the changeset viewer.