function add_taxonomies_to_pages() { // register_taxonomy_for_object_type( ‘post_tag’, ‘page’ ); register_taxonomy_for_object_type( ‘category’, ‘page’ ); } add_action( ‘init’, ‘add_taxonomies_to_pages’ );Continue reading
//* Enqueue scripts and styles add_action( ‘wp_enqueue_scripts’, ‘site_enqueue_scripts_styles’ ); function site_enqueue_scripts_styles() { wp_enqueue_script( ‘site-responsive-menu’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/responsive-menu.js’, array( ‘jquery’ ), ‘1.0.0’ ); wp_enqueue_style( ‘dashicons’ ); wp_enqueue_style( ‘site-google-fonts’, ‘//fonts.googleapis.com/css?family=Ek+Mukta:200,800’, array(), CHILD_THEME_VERSION ); $site_url = get_bloginfo( ‘url’ ); if (…Continue reading
//* Enqueue scripts and styles add_action( ‘wp_enqueue_scripts’, ‘site_enqueue_scripts_styles’ ); function site_enqueue_scripts_styles() { wp_enqueue_script( ‘site-responsive-menu’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/responsive-menu.js’, array( ‘jquery’ ), ‘1.0.0’ ); wp_enqueue_style( ‘dashicons’ ); wp_enqueue_style( ‘site-google-fonts’, ‘//fonts.googleapis.com/css?family=Ek+Mukta:200,800’, array(), CHILD_THEME_VERSION ); $site_url = get_bloginfo( ‘url’ ); if (…Continue reading
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
// This code snippet is used to dynamically populate taxonomy terms within the four Select2 Multi form fields // on the ‘edit profile’ form within Profile Builder. // // Select Field Location: Account > Edit Profile > Vendor Information //…Continue reading
// This code snippet is used to dynamically populate taxonomy terms within the five Select2 Multi form fields // on the ‘edit vendor profile form’ within Profile Builder. // // Select Field Location: Account > Edit Profile > Vendor Information…Continue reading
// This code snippet is used to dynamically populate taxonomy terms within the five Select2 Multi form fields // on the ‘edit vendor profile form’ within Profile Builder. // // Select Field Location: Account > Edit Profile > Vendor Information…Continue reading
// This code snippet is used to dynamically populate taxonomy terms within the Select2 Multi fields // on the ‘edit vendor profile form’ within Profile Builder. // // Select Field Location: Account > Edit Profile > Vendor Information // //…Continue reading
// This code snippet is run when a Profile Builder user profile is successfully updated // It checks for an existing vendor with a post author that matches the user’s ID // and either updates it or creates a new…Continue reading