All Questions
Tagged with code-snippets wordpress
149 questions
0
votes
0
answers
123
views
I need to send more than one value to another form using formidable forms in wordpress
I have a wordpress website using formidbale forms, and I want to create entries in form B when form A is submitted. I stumbled across this code that I will paste below. I used the code snippets plugin ...
0
votes
0
answers
17
views
sending sms to dokan vendors on order processing status [duplicate]
This snippet hooks into the WooCommerce order status change event and sends an SMS to each vendor associated with the products in the order. The SMS will notify the vendor of the new order and prompt ...
1
vote
0
answers
9
views
Embedding promotion text into article at diffrent points
We have promotional text (text A) that we want to embed into in article (text B) at specific different points, e.g. at 25% or 50% etc. The problem is, after adding it, text A is not displaying in text ...
0
votes
1
answer
53
views
"Code Snippets" snippet does not work for `big_image_size_threshold` setting
I have WordPress 6.5.2, "Code Snippets" plugin 3.6.4 installed and following snippet code:
add_filter( 'big_image_size_threshold', '__return_false' );
but it does not work, WordPress still ...
-2
votes
1
answer
127
views
Code Snippet for Add to Cart Redirect only works for the Add to Cart Button in SINGLE PRODUCT PAGE
The code snippet for redirecting the add to cart to the checkout page only works when I press the add to cart on the SINGLE PRODUCT PAGE. It does not work when I click the add to cart button on the ...
2
votes
3
answers
198
views
Auto delete old posts using Snippets for special category
Dears,
I want to delete the old post automatically without using a plugin and the Snippets will be the choice, I want to delete any post older than one day from a special category an using this ...
0
votes
1
answer
133
views
PHP Code Snippet Not Working in CartFlows (WooCommerce Plugin)
I followed THIS tutorial to change the coupon field and button text, using the following script in a Code Snippet:
/**
* Change the CartFlows Coupon Field text and Button text.
*
* @param array $...
1
vote
1
answer
297
views
Unexpected token error while using javascript snippet with WPCode in wordpress
I am trying to add custom javascript into my website for a widget on wordpress using the wpcode plugin but I keep getting an unexpected token error. There is a already created that isn't accessible ...
-1
votes
1
answer
322
views
Hide the Default Edit button in Wordpress Page and Post types
I a couple of WordPress sites that uses Elementor Page builder. Currently, when I go to Pages, Posts, or custom post types, I see two Edit buttons. One for WordPress editor another for Elementor.
I ...
0
votes
0
answers
151
views
Wordpress open accordion code snippet. Request failed with status code 418 on dreamhost
I am very new to javascript and php.
I am trying to write script in the Code Snippets plugin for a wordpress site to make anchor links to accordions open the accordion.
For example, the URL https://...
0
votes
0
answers
65
views
How to display a thumbnail of product variation in custom table? I just make a custom variation table in woocommerce
I created a custom variation table in WooCommerce, and I need to display product variations thumbnails in that custom table.
What is it the right way?
What is the code to create this?
Here is a ...
0
votes
0
answers
46
views
Email notification snippet doesn´t display 2 out of 5 metakeys
The following code sends a notification to the admin mail after every registration on the website:
function custom_registration_notification($user_id) {
$user = get_userdata($user_id);
$...
0
votes
1
answer
85
views
How to create a word document icon or button in WORDPRESS, when clicked, a word document whose content is created using php code will be downloaded?
I have a WordPress application with a lot of pages that are created using codes that I wrote in PHP and are inserted into the pages using PHP-code-snippet.
Now I want to create a 'newsletter' (...
-1
votes
1
answer
89
views
Hide last page pagination in wordpress
it is possible in WordPress to delete or hide the last page of the pagination, in order to allow users to continue the search without giving them the possibility of seeing the last page.
And then ...
0
votes
0
answers
56
views
locked out from Wordpress with php header location
I have a wordpress site and with a code snippet created a php header location redirect. Now I have locked myself out and can no longer get to the wordpress page. Neither in the frontend nor in the ...