I have code that assigns a tax rate based on user role. But when I create an order via the admin page its not setting the tax rate based on the user role, it using the default tax rate "user" its checking to see if the user is logged in, but the user it not logged in when creating a order in the admin, not sure how to apply the rate tax rate when manually creating the order in the admin. Thanks in advance. Here is what i have that works on the front end: … [Read more...] about Apply a different tax rate based on the user role (dashboard)
When will get my tax return
TaxJar to Host Free Webinar June 27: Tax Experts Answer Questions on State Tax Compliance for Online Stores
Automatic sales tax calculations are also available for merchants using Easy Digital Downloads. Pippin Williamson built a free integration for EDD and TaxJar that passes all tax rate determinations to TaxJar to calculate automatically, eliminating the need for manual tax rate entry. … [Read more...] about TaxJar to Host Free Webinar June 27: Tax Experts Answer Questions on State Tax Compliance for Online Stores
gutenberg dynamic block is returning 404
import { PluginIcon } from './plugin-icon'; const { ServerSideRender } = window.wp.components; const { registerBlockType } = window.wp.blocks; const { __ } = window.wp.i18n; registerBlockType('plugin-blocks/frontpage-releases', { title: __('Frontpage Releases', 'library-plugin'), icon: PluginIcon, category: 'plugin-blocks', edit: function ({ attributes }) { return ( <ServerSideRender block="plugin-blocks/frontpage-releases" attributes={attributes} /> ); }, save: function () { return null; }, }); … [Read more...] about gutenberg dynamic block is returning 404
Pre get posts sort by meta key returns no results if meta key does not exist
I am able to sort my posts by a custom field ('tour_length_days'). However if this field does not exist on an existing post then it will return no results. I was hoping there was a way to conditionally check to see if that meta key has a value before adjusting the query? … [Read more...] about Pre get posts sort by meta key returns no results if meta key does not exist
I cannot get tax_query in get_posts() to work with custom taxonomy
class Search_Tags { const NAME = 'search_tag'; const LABEL = 'Search Tags'; protected function get_post_types() { $args = [ 'public' => 'true', 'publicly_queryable' => 'true', ]; $post_types = get_post_types($args, 'names'); $post_types['page'] = 'page'; unset($post_types['attachment']); return array_keys($post_types); } protected function is_custom_post_type($name) { $built_in_post_types = [ 'post', 'page', ]; if (in_array($name, $built_in_post_types)) return false; return true; } public function create_taxonomy() { $name = $this::LABEL; $labels = [ 'name' => $name, 'menu_name' => $name, 'singular_name' => 'Search Tag', 'all_items' => "All $name", 'edit_item' => "Edit $name", 'view_item' => "View $name", 'update_item' => "Update $name", 'add_new_item' => "Add New $name", 'new_item_name' => "New $name", 'search_items' => "Find $name", … [Read more...] about I cannot get tax_query in get_posts() to work with custom taxonomy