To begin with you may need to add %s to the sprintf function, as the current link has no anchor text and this is supposed to be put in by sprintf as the second argument:
return sprintf( '<div class="form-block block-after-indent"><a class="atbtn atbtn--secondary1" href="#sime_url_product_id_%d">%s</a></div>', $product->id, esc_html( $product->get_title() ) );
Related Posts:
- Bulk remove post meta
- Check if value exists before saving
- Orderby meta_value only returns posts that have existing meta_key
- How to enable revisions for post meta data?
- Best way to programmatically remove a category/term from a post
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- Storing meta fields multiple times OR once with multi dimensional array?
- display specific custom fields
- passing argument to get_template_part() or a better way to code
- Is it possible to store arrays in a custom field?
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- importing data from non-wordpress mysql db
- Create meta boxes that don’t show in custom fields
- Transients vs CRON +Custom Fields: Caching Data Per Post
- Unable to save datetime custom meta field using update_post_meta() function
- Create custom field on post draft or publish?
- get_post_meta fields don’t show up on posts page
- copy attachments to another post type and change attachment url
- Cannot edit post meta fields with rest API
- Copying Custom Meta Values from existing post to a duplicate post
- Add a post meta key and value only if it does not exist on the post
- Move value of one custom field to another
- Order posts according to user defined order for meta values?
- Displaying posts with only upcoming dates according their custom field date value
- Function to change meta value in database for each post
- Get a post_id where meta_value equals something in a serialized meta_value field
- Get aggregate list of all custom fields for entire blog
- Include woocommerce custom field value in front-end search result
- woocommerce product custom field
- using multiple meta_key and meta_value in query_posts
- How to get customfield value by woocommerce product ID
- How can I sort homepage by a meta value?
- Get specific custom field keys from a post and put into an array
- MySQL Query that looks for post with Custom Field, then changes Category
- ACF: How to get the full field name (meta_key) by a field key?
- Woocommerce: Custom fields and email shortcodes, ec_custom_field
- Create Multiple File Upload Metabox in WordPress
- filtering custom post types via meta data drop down
- Run a check for multiple meta key values
- If meta key exists in get posts function otherwise create it
- WordPress Rest API to call page data associate with custom meta
- How to update custom field in WooCommerce
- How do I Implement Atomic Update of Post Metadata?
- Hide custom meta data if empty
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- Woocommerce Product Custom Select List (not variation)
- Why is my Custom Meta Box Field Inputs NOT saving?
- Get registered custom fields or post meta even if empty
- How can you include custom post meta in search without calling each key?
- shortcode in a custom metabox
- How can I modify RSS item titles to be either the title or a custom meta field?
- Avoiding ACF get_field and returning to core WordPress function
- Problem with saving large amount of data in postmeta/usermeta
- How to get posts with a metadata numeric key greater than X?
- Get all the posts where meta field with multiple choice has several values checked
- Move Title and the Content WYSIWYG editor position
- How do i get the attached images with custom value checked?
- Woocommerce Retrieving custom field value from orders
- Update post meta custom field using block editor
- Get custom fields without _edit_last, _edit_lock, _wp_page_template and _visual-subtitle
- Display posts with empty custom field
- Why am I getting a “Call to member function format() on a non-object” error?
- If metabox has content display content
- Modify custom field from front end
- Footnotes in custom fields
- Create a new custom field for all posts based on current custom field
- Display Meta Data with HTML?
- wordpress get_post_meta / the_meta to output custom field value
- Custom Query: query by post custom meta data
- Group Posts By Custom Meta Value: Date
- Meta field bulk editing no longer working in WP 6.0 [closed]
- update_post_meta not working well
- Set class if a meta value is set within post archive
- How to add a post’s view count into the WordPress API response
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Can’t set custom meta fields for a post
- Allow HTML in Custom Metabox area
- Why does my numeric meta query work only on one meta key and not the other?
- Custom field metabox not showing in back-end
- Update custom field on the fly
- Save, update, get and sanitize post meta as HTML not plain
- WooCommerce 3 get custom variation on process order [closed]
- Use a different catalog image than the featured image
- Saved Post Meta Array Returns as String
- Query Multiple meta
- Problem saving meta data
- Query postmeta values, and return multiple post_titles for common meta value
- When post is updated, custom metadata in text area field is overwritten
- change attachment custom field onChange event
- Custom Field: Display only if a specific key is selected outside the loop
- When editing a post with a custom meta box the values aren’t displaying correctly
- Make Custom Fields Public in JSON – API
- woocommerce how in checkout to add my custom field check box, and when i check it hide the shipping adress and add tax 19% [closed]
- Retrieving custom field as shortcode
- Hiding custom fields when content is empty [closed]
- Send checkout page custom field in order email
- Extract array from custom field
- Order by a meta field in query loop
- save all acf options in one meta_value [closed]
- get Custom field label (select/dropdown) on front end