I think you’re just printing your function as a string, try concatonating:
add_action( 'woocommerce_product_meta_end', 'childReview' );
function childReview() {
global $post;
echo do_shortcode('[cl-popup size="l" title="Click!" btn_label="Headline" btn_bgcolor="#006982" btn_color="#ffffff" overlay_bgcolor="rgba(0,105,130,0.75)" title_textcolor="#006982" content_textcolor="#006982"]<img src="https://wordpress.stackexchange.com/questions/235313/" . wp_get_attachment_url ( get_post_thumbnail_id( $post->ID ) ) . '"/>
[/cl-popup]');
}
Related Posts:
- Nested shortcode functions accessing variable
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Return multiple values in a shortcode attribute
- Adding a Tag Parameter / Filter to My Shortcode
- How to get current cart values using WC_Shortcodes?
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- Posting code inside the post instead of in the template file using shortcode
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Keep one user logged for a year?
- Customizing subject in comment notification e-mails
- if plugin is active? check if plugin is enabled or not?
- WP showing “warning: call_user_func_array()”, What to do?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Adding Custom Fields for Img in Posts
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Shortcode display outside the div
- How to turn off email you receive when registered?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- shortcode doesn’t work
- How can i change an image’s author?
- Can’t get custom posts of taxonomy to show
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Missing argument 3 for wp_register_sidebar_widget()
- get shortcode value
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Shortcode button dosent work for all posts. Work for first post only
- Prevent shortcode from being wrapped in tags
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- Edit Yoast SEO breadcrumbs output [closed]
- How to put JQuery/Ajax inside shortcode?
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- WordPress function not being called from jQuery method
- Override Plugin Script Fucnction in WordPress
- creating html reusable blocks via shortcodes
- Replacing a plugin function with a custom renamed function doesn’t work
- How to call WordPress function other files
- Conditional attributes and logic per product category
- Some code in shortcode function being ignored
- WordPress get_avatar function not correct working
- How to Create a shortcode to this php function
- Check if variable is set in filter
- JQuery prepend a function
- Why can’t I call a (member) function from within a foreach?
- Are there action hooks for comments?
- Custom shortcode for displaying user based on a role parameter
- wp_enqueue_scripts
- get specific value of a array | PHP
- Shortcode Attributes to Return different $_POST
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Plugin onclick button activate other plugin
- How can I fetch data from another website to my wordpress website with mysql database
- Send email with list of active plugins upon activation/deactivation
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- Get all the URLs of the pages that uses a specific shortcode
- Echo out element to another page.
- Different registration form for different roles
- Can you echo PHP code from a variable?
- Elementor Pro display featured image on section -> style -> image using shortcode
- add_rewrite_rule to load different page, without changing URL in browser
- WordPress Custom Hook with Class method
- Allow a particular user to access a particular plugin?
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- Post source link plugin – small modification
- How do I use a plugin’s shortcode attribute value in another function?
- Share my WordPress plugin for updating how?
- How to create algorithm for ordering posts in WordPress?
- Submitting form to PHP
- Adding discount functionality to the cart
- Precheck fields when I add a new post
- Block plugin update possibilities (but not by hiding notifications)
- Change custom rewrite rule when permalink is updated/changed
- Return function results within shortcode
- Configuring default woo commerce login with modal popup
- Soflyy WP All Import Custom File Download Issue
- Update (a function) post’s featured image as soon as $image_url changes
- Populate select option with JSON file
- Query Shortcode from a multisite to appear on a different site?
- How to echo a plugin’s function into a template?
- It possible to implement an adhoc php web application with wordpress?
- Create csv file in plugin
- Contact Form 7: custom validation [closed]
- date function not correctly returning date
- How to disable register and reset the password from WordPress admin panel?
- How use Dynamic hyperlink on each wordpress post?
- How to prevent page load on form submission
- Creating Features List in WordPress Post
- WordPress: code structure
- PHP if url extension action=discussion condition use [closed]
- Adding a script & php to functions.php
- PHP Creating a formula from mysql db values and db stored math operator
- Make plugin admin page visible to other roles
- How to change all the urls of the WordPress site?
- I want to allow certain file types on dokan upload files