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:
- Edit tag cloud widget number
- Shortcode putting html such as
- Display sorting options dropdown when using WooCommerce product category shortcode
- How to get the original price of the product in woocommerce?
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Shortcode created to check language not works
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- Add/echo div with Analytics-Code to function in functions.php
- How can I default to all WordPress roles when parameter is not included in shortcode?
- WordPress menu deletes when trying to add a hook
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Recent post display using shortcode
- Nested shortCode functions in the functions.php file
- Making Quote Plugin more efficient
- My Own layout in WooCommerce pages [closed]
- Woocommerce – remove product from category
- Shortcode content output but not in correct place
- PHP code inside shortcodes
- How do I display a user’s previous orders as a select box option on a product?
- How do you add customer capability after Woocommerce purchase?
- get current product name in functions.php
- Trigger popup in a php if/else statement
- Image as Sales Badge
- How to output a PHP file values by shortcode?
- Two Different Links for Same Product – WooCommerce [closed]
- Display a specific category of products in shop page and disable code for specific actions
- Woocommerce related product text
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- How can I get the values of my WordPress $wpdb query in Jquery?
- Pass php dynamic variable to shortcode
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Validation algorithm in checkout field
- My new button is in the wrong place
- How to Reference/Echo Variable from Another PHP Function
- Remove echo from shortcode
- Redirect to another page using contact form 7? [closed]
- echo something inside a shortcode
- Shortcode from a function not working
- Is it possible to return content, and then also continue to do other things?
- Creating WordPress Shortcode with Variable
- Shortcode to find and replace URL
- require_once() if a product in woocommerce contains a tag [closed]
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- Shortcode to embed Edit Account form not working
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- woocommerce specific quantities for product
- Shortcode for Listing Users from Meta Value?
- woocommerce related product title length
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Woocommerce order status payment
- 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
- Display logged in user name and lastname on page
- 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 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
- 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
- How can I prevent a shortcode div from extending beyond its boundaries?
- PHP multiple forms, same page, isset($_POST[]) not working?
- shortcodes, custom php and their errors
- 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 )
- 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 Shortcode to ::before class
- Reload page with a different shortcode when a user selects from a dropdown
- How to override WooCommerce Order Item Meta with data from Cart?
- Woocommerce textarea format ignored
- Woocommerce Add custom “Add to cart button” in single page with tags
- Offset with ajax load more posts duplicates
- Get posts by id using shortcode
- Shortcode’s output to use as other shortcode’s parameter
- Add missing alt tag to featured images for “storefront” theme
- Display text of price (minus 20%) on every product page in a sentence.
- Need help with PHP functions
- Use WP_Query Data In Cookie
- Shortcoding with Divs
- How to get the rating value of each comment
- 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
- Shortcode to include PHP file, pass various parameters to include?
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- posts_clauses drop ACF get_field function
- Replace the image of a product with its video in the shop page
- 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