I hereby claim:
- I am paulmiller3000 on github.
- I am paulmiller3000 (https://keybase.io/paulmiller3000) on keybase.
- I have a public key ASDN55EAtdtLz4A1p74AO26n33yM_SHXPKhslYWSyUAT6wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const isSpaceship = (ele) => { | |
if (ele) { | |
console.log('Happy path. Ele exists.'); | |
let selectedOption = ele.options[ele.selectedIndex].text; | |
console.log(selectedOption); | |
if ( selectedOption == 'Raptor' || selectedOption == 'Viper') return { ready: true, value: selectedOption }; | |
} | |
return { ready: false }; |
/** | |
* Begins execution of the plugin. | |
* | |
* Since everything within the plugin is registered via hooks, | |
* then kicking off the plugin from this point in the file does | |
* not affect the page life cycle. | |
* | |
* @since 1.0.0 | |
*/ | |
function run_p3k_galactica() { |
<?php | |
/** | |
* The plugin bootstrap file | |
* | |
* This file is read by WordPress to generate the plugin information in the plugin | |
* admin area. This file also includes all of the dependencies used by the plugin, | |
* registers the activation and deactivation functions, and defines a function | |
* that starts the plugin. | |
* |
<?php | |
/** | |
* Extends the WC_Settings_Page class | |
* | |
* @link https://paulmiller3000.com | |
* @since 1.0.0 | |
* | |
* @package P3k_Galactica | |
* @subpackage P3k_Galactica/admin | |
* |
<?php | |
$propulsionTypes = array( | |
'unknown' => __( '', 'p3k-galactica' ), | |
'light_speed' => __( 'Light Speed', 'p3k-galactica' ), | |
'ftl_speed' => __( 'Faster Than Light', 'p3k-galactica' ), | |
); | |
$settings = array( | |
array( | |
'name' => __( 'General Configuration', 'p3k-galactica' ), |
/** | |
* Get settings array | |
* | |
* @return array | |
*/ | |
public function get_settings() { | |
global $current_section; | |
$prefix = 'p3k_galactica_'; | |
$settings = array(); |
/** | |
* Register all of the hooks related to the admin area functionality | |
* of the plugin. | |
* | |
* @since 1.0.0 | |
* @access private | |
*/ | |
private function define_admin_hooks() { | |
$plugin_admin = new P3k_Galactica_Admin( $this->get_plugin_name(), $this->get_version() ); |
/** | |
* Load dependencies for additional WooCommerce settings | |
* | |
* @since 1.0.0 | |
* @access private | |
*/ | |
public function p3kg_add_settings( $settings ) { | |
$settings[] = include plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-p3k-galactica-wc-settings.php'; | |
return $settings; | |
} |
/** | |
* Get sections. | |
* | |
* @return array | |
*/ | |
public function get_sections() { | |
$sections = array( | |
'' => __( 'Settings', 'p3k-galactica' ), | |
'log' => __( 'Log', 'p3k-galactica' ), | |
'results' => __( 'Sale Results', 'p3k-galactica' ) |