Questions tagged [plugins]

Plugins are tools to extend the functionality of WordPress.Use the tag to mark questions related to issues and bugs faced in the plugin or its improvement. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

fatal erro in one line if statment in wordpress plugin [Solved]

I hope you have a good day. I searched for the answer to my question but did not find a solution. please guide me I want to use if statment and If the first name of the user is not empty, I will ...
0 votes
0 answers
4 views

Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece

I am creating a website using Elementor and woocommerce We need to collect data through Elementor form and use registration at the same time. Maybe a custom PHP function in Elementor forms should see ...
0 votes
1 answer
24 views

How can I display custom snippet codes in the front end of my WordPress site

I have a Wordpress website and I want it to display raw snippet codes on the front end but it keeps showing the output. This is what I need to show on the front end I have used several plugins like a ...
0 votes
0 answers
23 views

Passing an input variable through a switch statement

I am having trouble with getting the $repLevel variable to pass between two php files in this plugin; the initial php file where the form itself will submit a selected option and send it to a ...
0 votes
0 answers
17 views

How can I make a quotation engine like this website in WooCommerce?

I was creating a website and I would like this quote could be made for WooCommerce or WordPress. I add the url as an example: https://dtfpormetros.com/dtf-shop/ If a plugin does something like the url ...
0 votes
0 answers
20 views

How get id of CPT [closed]

I need some help, thank you I want to deactivate plugin Toolset types and have some problems now Error because using plugins function wpcf_pr_post_get_belongs All code: $parentId = ...
1 vote
1 answer
16 views

URL Redirect on GoDaddy platform [closed]

I am the IT support person for one of our clients. We have a domain hosted on GoDaddy in one account pointing to a WordPress site located in another GoDaddy account created by our client. In the DNS ...
0 votes
0 answers
6 views

Ignoring a word/path with regex [closed]

I've be trying to do some redirects from a blog, to another. The paths would be like this: From: domain/blog/posts to: diferentDomain/blog/posts So i came with this solution: ^/blog/(.*) The thing ...
  • 1
0 votes
0 answers
12 views

I want to set a different banner for each product in the woocommerce plugin on my wordpress site

I want to assign a separate banner to each product on the site, but I cannot because the product page is a template. can you help me
0 votes
0 answers
13 views

Restoring self-hosted site after configuration causes no response: ERR_CONNECTION_TIMED_OUT [closed]

I'm relatively new to web development, and I've set up a self-hosted (LAMP) WP site. After one too many configuration changes I broke the site. Apache error logs are clear as to where and when things ...
  • 1
0 votes
0 answers
17 views

How often should I execute add_filter and function declaration in Code Snippets?

I am fairly new to WordPress still, I do not fully understand the filter / hook thing. For example, I'm modifying the WooCommerce Thank You page by adding a filter that executes my function in a Code ...
  • 1
0 votes
1 answer
12 views

Add different sizes packaging boxes to orders plugin

So im selling frozen items in special eps boxes in woocommerce, i need a plugin, i got 2 different sizes. One small can contain 5 items and costs €1,5 and the other medium 15 items €2,5 If someone ...
  • 1
0 votes
2 answers
28 views

Identifying Plugins Based on Tables

Each time I attempt to import my test server db into my production server, I get the error below: WordPress database error Table 'adminjsds_wordpress.wp_actionscheduler_actions' doesn't exist for ...
  • 145
0 votes
0 answers
16 views

Function not being called on form submit, only blank admin-post.php page

We are trying to call the function on_save_settings when the form with action settings_form is submitted. But when we submit the form we only get a blank page with url /wp-admin/admin-post.php. Here ...
  • 1
-1 votes
0 answers
11 views

Terms id wordpress error

foreach($tax_terms as $tax_term): $slug = $tax_term->slug; $term_id = $tax_term->term_id; $posts = get_posts(array( ...
0 votes
0 answers
11 views

How to show image caption in Woocommerce gallery

there is a way to show in product gallery in woocommerce the caption of the image? i have try different way but i cant find the solutions, i use ad extrernal plugin for the gallery https://www....
0 votes
0 answers
17 views

Pay based on previously purchased tokens (not crypto) [closed]

I have a WordPress website that serves some services to customers. We want to implement a system that enables customers to buy some tokens (for instance, 1000 tokens) and, when they request a service ...
  • 101
0 votes
0 answers
12 views

¿How can I show CPT UI entries on the home page?

I hope someone can help me, I'm using a translator so the English may not be that good, I apologize for that. I am using CPT UI to create articles ordered by sections like: Movies, Series, Etc. I have ...
  • 1
0 votes
0 answers
11 views

How can I view my WP backend dashboard to the front end dashboard as well with users access restrict ( read only )? [closed]

does anyone have experience before with making WordPress's backend admin dashboard (Only one part of it) become visible on the front end for all users but they can only view and not be able to edit ...
  • 1
0 votes
2 answers
26 views

Can't use updated variables in handle function

I have some problem with the wp-background-processing that's when I change the $url in another file using $this->process_single->url('https://anotherexample.com'); the url won't update in handle ...
0 votes
0 answers
17 views

Why is updating core/plugins manually considered a "critical issue"?

I have always regularly checked sites for which I am responsible so as to perform plugin, core and theme updates manually, and was under the impression that this was a "best practice" ...
  • 29
0 votes
0 answers
5 views

Template selector for woocommerce product

i would link to know if there is a plugin to select a template for each product (in the add new product page) Thanks to everyone!
0 votes
1 answer
21 views

how to get the url of a custom uploaded file

For a custom function I need to generate a file, upload it to the upload folder and also access the upload file afterwards to attach the file to an email. For uploading the file I use the ...
0 votes
1 answer
27 views

WordPress GiveWP Plugin showing blank page in none default theme

I am using the GiveWP plugin with a U-Design theme. The donation page shows preloader for short time then turn into a blank page: I.E. In this page: https://www.podrsd.org/donations/support-needy-...
  • 3
0 votes
1 answer
13 views

How to access values from your own settings page in javascript?

I added may own settings page for my plugin with php. Furthermore I need to access the values from two inputFields from the settings page after someone clicks on a submit button on the public page. My ...
  • 1
0 votes
0 answers
9 views

Fragmented Static Conversion of Wordpress Pages

Consider this, A wordpress site has 1000 pages, and each page having 3-8 subpages, the subpages do not change content, but their number increases reaching a maximum of 8 or sometimes 10 in rare case ...
0 votes
0 answers
23 views

Neither update_option nor delete_option fires in deactivation hook

I have a plugin. And the following code: function activate_my_plugin(){ // my_option value here: 1 update_option('my_option',0,true); // I've tried with and without last parameter // ...
  • 115
0 votes
1 answer
20 views

Check if plugin is being disabled

I have created a wordpress plugin. But when i disable the plugin i must delete a certain file before a user can reactivate the plugin. Is there a function or a way to know when someone disables my ...
0 votes
0 answers
10 views

Gutenberg Block to Select Category Term

I'm trying to create a block that will allow the editor to select a category term from a select box. When they have done this, I would like it to show the following within the block; category title, ...
1 vote
0 answers
13 views

How to debug periodic performance issue

I have an periodic performance issue on my site. Seems like every exactly 10 secods, something clogs the CPU up to 100%. I can clearly see it's something from the site itself rather than the ...
0 votes
1 answer
18 views

How can I Customize My WordPress Admin Dashboard into Dark Mode?

I want to customize my all wp dashboard for my clients and I want to change the login logo, admin panel themes, disable all uneasy things and over all I want to hide my WP admin panel like no one can ...
0 votes
1 answer
14 views

Suitable hook when creating, updating and deleting posts programmatically

I am trying to create, update & delete posts programmatically from an API endpoint inside my plugin. My idea was to display these posts later on a dedicated page. Here's what I've written so far: ...
0 votes
0 answers
21 views

Custom wordpress plugin does not save select element

I googled, I copied, I tried to replicate but I just can't get select element to be saved in the database. Not sure what I am missing, maybe someone will. Here is what I got. <?php public function ...
0 votes
0 answers
17 views

Need help with wordpress audio preload

I am using defualt worpdress audio player and i dont want audio to be preloaded by default that is instead of browser defualt option. I want it to be preload=none by default. Since i post too many ...
  • 1
0 votes
0 answers
10 views

Am having issues intergrating this api into my wordpress site, any help please?

this is the api code from rapid api <?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://gas-price.p.rapidapi.com/europeanCountries", ...
0 votes
0 answers
18 views

Update post meta Rest Api

I have to work on a Wordpress that uses the plugin Easy Post View Count, which by default does not support rest api. With the plugin Custom rest api i've been able to get these post meta inside the ...
0 votes
0 answers
32 views

Refresh server side rendered block in Gutenberg without changing attributes or its content

I developed a free block called "SimpleTOC". It uses server side renditions in php. I added the feature that it refreshed itself everytime the user saves the post. I do this by updating an ...
  • 581
0 votes
1 answer
40 views

auto activate plugin when theme is active

i have a class to activate the plugins when i set my theme to active but the class auto activate all plugins , how i can modify to activate only the plugins that i choose. if ( ! class_exists( ...
-1 votes
0 answers
18 views

Is there a Plugin or a way to retrieve the API data?

I have this code using Dart. This an async function. I would like to know if there is a plugin or a way to retrieve the data for the API into a Wordpress post or page? await client.get('https://cloud....
  • 1
0 votes
0 answers
11 views

How to return a specific attribute

The following returns the description return (new CSimpleField('product','data','description',null,null))->GetHtml(); I am trying to return a specific attribute named pa_color but it is not ...
  • 101
0 votes
0 answers
8 views

How to translate user added content in a plugin

Whilst I understand how to make text in my plugin & theme templates translatable, how do I translate text that has been added by a user in the plugin settings page, since I do not know what that ...
0 votes
0 answers
12 views

How to make a slider hearder?

My goal is to make the same kind of header as the bottom part of https://www.hotukdeals.com/' header where you have an arrow on both sides and between them, all the categories that the website has. I ...
  • 1
3 votes
1 answer
79 views

Is it possible to know which menus are owned by a plugin?

I'm building a plugin that needs to generate a list of active plugins along with the menus that were created by each plugin. After browsing core I couldn't find anything that would associate the ...
0 votes
1 answer
32 views

How to proper escape echo inside a javascript tag

how to proper escape echo in php, so I am transfering a php variable to javascript using this code <script type="text/javascript"> var sel = "<?php echo $result[0]; ?>&...
0 votes
1 answer
17 views

Can't save changes or modify settings in Dashboard but Pages and Posts are fine

I am working on a client site from a previous developer. It needed many updates so I updated WordPress to v.6.0.1, Astra theme 3.9.1 (uses a child theme) and the many plugins in use. After all this, ...
  • 1
0 votes
1 answer
22 views

How to call php file in theme directory from plugin

The goal is to reuse some part of code to login and logout user in ajax with or without reload page . I can't call the content of php file ajax_user.php inside wordpress template directory from my ...
  • 11
0 votes
0 answers
8 views

Plugin Admin panel checkbox unchecked after submit

I am developing a plugin and I have 2 checkboxes in the admin panel. My code looks like this: <input type="checkbox" id="vsuc_checkbox1" name="vsuc_checkbox1" value=&...
0 votes
0 answers
30 views

uncaught TypeError: Cannot read properties of null (reading 'classList') custom plugin

I am developing a custom plugin and I have a big problem that I can't fix. I need to create a couple of checkboxes in the admin panel of the plugin that would change the styles of an element in the ...
  • 3
0 votes
0 answers
14 views

Adding CASE in WP_Query

How can we write this query using WP_Query select wp_posts.ID , wp_posts.post_title, wp_postmeta.meta_key, ( CASE WHEN wp_postmeta.meta_key = '_end_date' THEN wp_postmeta....
  • 1,226
0 votes
0 answers
20 views

How do I minify a plugins CSS/JS code?

I'm using Autoptimize but I'm still getting warnings in Semrush that JS files for other plugins haven't been minified, for example the maxmegamenu.js file and some woocommerce CSS files within the ...

1
2 3 4 5
208