I need
echo do_shortcode('[Shortcode]');
to go where it says “New
Item Contents here!” is there any way to do this?
Just put it there:
add_action( 'woocommerce_account_new-item_endpoint', 'add_new_item_content' );
/**
* Add content to the new tab.
*
* @return string.
*/
function add_new_item_content() {
echo do_shortcode('[Shortcode]');
}
Maybe I’m misunderstanding the question, but that’s all you need to do.
Related Posts:
- Woocomerce custom add to cart button edit functionality [closed]
- How do i wrap woocomerce attribute in list?
- Removing files programmatically
- Custom Taxonomy Select Menu: Setting default option value?
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- AJAX function not working [closed]
- Execute PHP code only with specific user role
- Woocommerce order status payment
- Modify WooCommerce used to get all orders in dashboard
- Output product category link from WP_Query
- How to work Woocommerce pagination inside shortcode?
- How to get woocommerce orders with get_posts method in a shortcode
- Updating Metadata with Shortcode
- Display logged in user name and lastname on page
- Woocommerce My acount page
- Woocommerce – Exclude variation attribute on specific variation
- Create shortcode for metabox gallery
- Display Visual Composer shortcode if a post belongs in specific categories
- Why is the current page loaded in the pop-up window and not the specified one?
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- How do I reopen the (Popup Maker) after entering the correct password for a password protected page?
- PHP function for horizontal Woocommerce thumbnails and badges
- How to add a shortcode which runs a .php file for the current post
- Block error message in foreach loop when looping through ACF field
- Run a sql (update) after 12 hours after the user login. Woocommerce users
- php code for outputting a custom page in my account
- Hide specific shipping methode depending on day and time of day
- Programmatically add a product to the cart and set price to zero when buying from certain category
- I want to show cart items number if any or nothing, simple CART text
- Adding custom field to product category and show it to shop/category shop page
- Hide payment method based on user role AND minimum cart value
- How can I prevent a shortcode div from extending beyond its boundaries?
- WooCommerce display price before add to cart [closed]
- PHP multiple forms, same page, isset($_POST[]) not working?
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- wpdb->query returns different value to phpMyAdmin
- shortcodes, custom php and their errors
- Remove span tags from WooCommerce Downloads page
- Best way to use variables in multiple functions?
- Display a custom name when the user has no name settle in his account
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Discount in the specific product title using keyword ( Woocoommerce )
- Including user data in “new user notification email”
- Woocommerce – if selected attribute term equals
- split 1 cart item into instock and back ordered
- Adding product permalink on admin order page throwing error
- Display current user metadata on WordPress page
- Add Product Permalink in woocommerce admin order page
- Add Shortcode to ::before class
- Reload page with a different shortcode when a user selects from a dropdown
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- How to override WooCommerce Order Item Meta with data from Cart?
- Woocommerce textarea format ignored
- How to auto-generate random numbers in username?
- Remove generated category and tag class names from woocommerce product & blog listings markup
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- WP_Query To Display Product Of Brand On Taxonomy Page
- Woocommerce Add custom “Add to cart button” in single page with tags
- Offset with ajax load more posts duplicates
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- Get posts by id using shortcode
- Open/closed function [closed]
- Add missing alt tag to featured images for “storefront” theme
- Need to Echo A Url path to show on a wordpress page
- Display text of price (minus 20%) on every product page in a sentence.
- Wrapping shortcode content in a span or link
- Need help with PHP functions
- Use WP_Query Data In Cookie
- Woocommerce Price Text
- How to have Function of a plugin using global vars into a shortcode?
- Overwriting a Shortcode
- Shortcoding with Divs
- How to get the rating value of each comment
- How to add margin underneath woocommerce total price amount -> productpages
- Whats wrong with my code? Need To add String to shortcode? [closed]
- My title is showing after the shortcode
- Setting WooCommerce currency programmatically
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- A next page function with shortcode?
- Shortcode to include PHP file, pass various parameters to include?
- Warning: Attempt to read property “term_id” on int – Woocommerce
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- posts_clauses drop ACF get_field function
- WP Custom tables query
- Replace the image of a product with its video in the shop page
- Display terms on product page with shotrcode
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- Automatically change insurance quantity based on cart total [closed]
- strict custom php script on specific product category [closed]
- Change WooCommerce Order status from frontend form submitted data
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)
- Add text below WooCommerce short description if metabox value is true
- Calling a function via a shortcode in javascript
- Adding a css class to the gallery
- Strip and print only the numbers found in current’s post excerpt (even if they are without space)
- How to change product title color in shop page if product has specific product tag (Woocommerce)?
- “Joined in” or “Member since” displayed on single store page and then using shortcode to add
- How to capture number input from wordpress form into acf field in woocommerce
- How to get default variation ID (woocommerce)
- Assign a value (got from an xml file) to an attribute of Woocommerce products