Customize WooCommerce my account dashboard through plugin

I ended up doing it in what I would consider a sloppy way. On the init hook I check the WooCommerce template against my custom template and if the WooCommerce template does not match my template then I replace the WooCommerce template with my template. add_action( ‘init’, ‘run_inital’ ); function run_inital(){ $wooThemePath = $woocommerce->plugin_path().”/templates/myaccount/dashboard.php”; $myThemeFile … Read more

Input value from metabox is not found in $_POST after post save

The $_POST[”] has to contain the name attribute of the input field and not the ID. So to modify your code: function silly_display_metabox( $post ) { wp_nonce_field( basename( __FILE__ ), ‘silly_extrnum_nonce’ ); ?> <label for=”sillyNum”>Silly Number</label> <input type=”number” id=”sillyNum” name=”sillyNum” placeholder=”Write a number…”> <?php } And function silly_save_metabox( $post_id ) { $is_autosave = wp_is_post_autosave( $post_id … Read more