- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/
) called.ssh
. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
DELETE relations.*, taxes.*, terms.* | |
FROM wp_term_relationships AS relations | |
INNER JOIN wp_term_taxonomy AS taxes | |
ON relations.term_taxonomy_id=taxes.term_taxonomy_id | |
INNER JOIN wp_terms AS terms | |
ON taxes.term_id=terms.term_id | |
WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation')); | |
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation')); | |
DELETE FROM wp_posts WHERE post_type IN ('product','product_variation'); |
<?php | |
// Add the field to the Add New Category page | |
add_action( 'category_add_form_fields', 'pt_taxonomy_add_new_meta_field', 10, 2 ); | |
function pt_taxonomy_add_new_meta_field() { | |
// this will add the custom meta field to the add new term page | |
?> | |
<div class="form-field"> | |
<label for="term_meta[cat_icon]"><?php _e( 'Font Awesome Icons', 'pt' ); ?></label> | |
<input type="text" name="term_meta[cat_icon]" id="term_meta[cat_icon]" value=""> |
<?php | |
/** | |
* Sage includes | |
* | |
* The $sage_includes array determines the code library included in your theme. | |
* Add or remove files to the array as needed. Supports child theme overrides. | |
* | |
* Please note that missing files will produce a fatal error. | |
* | |
* @link https://github.com/roots/sage/pull/1042 |
/* Vue 3 Render Function: https://v3.vuejs.org/guide/render-function */ | |
// Import utilities from Vue | |
import { h, resolveComponent } from "vue"; | |
import getLinkTag, { ANCHOR_TAG, FRAMEWORK_LINK } from "./getLinkTag"; | |
const SmartLink = { | |
props: { | |
href: { | |
type: String, | |
default: "" |
add_action( 'woocommerce_before_order_notes', 'bbloomer_add_custom_checkout_field' ); | |
function bbloomer_add_custom_checkout_field( $checkout ) { | |
$current_user = wp_get_current_user(); | |
$saved_license_no = $current_user->license_no; | |
woocommerce_form_field( 'license_no', array( | |
'type' => 'text', | |
'class' => array( 'form-row-wide' ), | |
'label' => 'License Number', | |
'placeholder' => 'CA12345678', |
<?php | |
$args = array( | |
'label' => '', // Text in Label | |
'class' => '', | |
'style' => '', | |
'wrapper_class' => '', | |
'value' => '', // if empty, retrieved from post meta where id is the meta_key | |
'id' => '', // required | |
'name' => '', //name will set from id if empty |
<?php | |
class MyTheme | |
{ | |
private function actionAfterSetup($function) | |
{ | |
add_action('after_setup_theme', function() use ($function) { | |
$function(); | |
}); | |
} |
<div class="hero"> | |
<div class="container"> | |
<div class="blogItem blogItem__fl"> | |
<div class="blogItem__cat"> | |
<div class="b-center">Lorem ipsum dolor sit amet.</div> | |
</div> | |
<div class="blogItem__dt">10/12/2012</div> | |
</div> | |
<div class="blogItem blogItem__fl"> | |
<div class="blogItem__cat"> |
<div class="accordion"> | |
<div class="accordion-header">Et quasi architecto</div> | |
<div class="accordion-content">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</div> | |
<div class="accordion-header">Nemo enim ipsam</div> | |
<div class="accordion-content">Et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</div> | |
<div class="accordion-header">Sed ut perspiciatis</div> | |
<div class="accordion-content">Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur.</div> | |
</div> |