Questions tagged [plugins]

Plugins are tools to extend the functionality of WordPress. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

0
votes
1answer
767 views

get_option return incorrect values

I'm making a Wordpress Plugin, and I'm starting with the Admin Settings page, I have the page setup and in the menu bar, i have also added sections and fields in to the page and they all work fine, ...
0
votes
0answers
25 views

How do I add this custom nav menu to my wordpress?

So I'm trying to recreate the nav menu over from stripe.com over on wordpress, and I found this tutorial. I haven't found any plugins that can recreate the stripe nav menu effect so I'm resorting to ...
0
votes
1answer
14 views

How to fix empty/missing theme directory?

I'm having an issue with my site, i get the following error whenever I try to access it "The theme directory "Divi-child" does not exist. ERROR: The themes directory is either empty or doesn’t exist. ...
71
votes
18answers
6k views

WPSE Plugin Repository: The plugins that came out of WP-Answers

Link your WPSE-Plugins If you answered a question and made a plugin out of your code, than this is your place to share it. The Idea: An old comment from @MikeSchinkel during the beta phase where he ...
0
votes
1answer
30 views

Insert Google Maps HTML in Wordpress

I want to insert a Google Map into Wordpress without paying for a plugin. I just want to adjust the style, add a few markers and add a description to the makers. Therefore I simple used the example ...
0
votes
1answer
11 views

Passing data from a page to an external link

I am creating an event booking site on Wordpress: User clicks on a Book Now on a event page on WP website. He lands on external page where he can see: Title of event(prefilled and uneditable), ...
0
votes
2answers
8k views

Passing URL parameters to WordPress pages and pretty url

I create shortcode like this function test_func( $atts ) { return $_GET['myvar']; } add_shortcode( 'test', 'test_func' ); and one page with this name myparameters so this is the final url ...
0
votes
0answers
14 views

Woocommerce - Change variations output

I'm looking for a way to customize the output of the variations selector. For example, I have shirt size and color, and I want to transform the color field in a custom radio button, and showing the ...
0
votes
0answers
14 views

Create calendar entries from post [on hold]

I am looking for a plugin or other way to do the following: Add a number of posts (containing each a standard event with description) From these posts I want to create one or more calendar entries if ...
0
votes
1answer
682 views

Invisible reCaptcha for WordPress no longer working?

I have been using Invisible reCaptcha for WordPress with Contact Form 7 on many sites for a while. Every site I use the plugin on now returns: "Cannot contact reCaptcha. Check your connection and try ...
0
votes
1answer
19 views

License validate function

I'm newbie in WP and I'm working on license validate function. I need to show a form to user to enter license key and then active the plugin. I have code like this: Show a notice to ask license key ...
0
votes
0answers
20 views

Wordpress the_content Filter and GET Parameter

i have the following Problem and i have no ideas left. I try to explain: We have some Producttests you need to register for. A Post can be a Producttest, wich is indicated by a checkbox in the ...
0
votes
2answers
1k views

Wordpress delete cookie

First sorry for my bad english, i'm french. I need to make my website GDPR Friendly, so for this I use the plugin 'RGPD' who give me the possibility to check or uncheck multiples types of cookies. ...
0
votes
1answer
848 views

How to display widget in front end?

I've followed up this tutorial and developed events plugins into my wordpress site. https://code.tutsplus.com/tutorials/creating-upcoming-events-plugin-in-wordpress-creating-the-widget--cms-19922 I ...
0
votes
3answers
342 views

How to make my wordpress site Multi-region

I have a website that I want to make multi-region. In this case I want some pages of the website to be different on each region, also the menu should be different. For example. I want a website that ...
0
votes
2answers
626 views

Custom user data capture form with auto membership ID

In one of the project I am working, I need to capture user data (infact the members data). On the homepage the visitor who want to be a member will click on register which will show a registration ...
0
votes
0answers
45 views

Uncaught TypeError: Cannot read property 'cycle' of undefined

Uncaught TypeError: Cannot read property 'cycle' of undefined at HTMLDivElement.<anonymous> (bootstrap.js?ver=5.2.1:473) at Function.each (jquery.min.js:2) at n.fn.init.each (jquery.min.js:2) at ...
-1
votes
1answer
41 views

How to add plus minus button on Input Quantity box Woocommerce? [closed]

I want ot add + and - button after and before the quantity input on single product page? how is this possible to add using standard method lets say using hooks and fitler?
0
votes
1answer
14 views

Sanitize $_GET variable when comparing

I know when I want to save data in database, I must sanitize data but what about following case which is a simple comparison. Should I sanitize? if ( ! isset( $_GET['page'] ) ) { return; } ...
0
votes
0answers
13 views

Why there is no edit handle on my elementor page?

I have a page built with elementor. There are multiple blocks on my page but I don't see the edit handle when I hover over an element/section. As seen in the attached screenshot, the mouse is hovering ...
2
votes
3answers
2k views

How to get Plugin Slugs?

I am trying to get the 'slug' used for each plugin installed. I have not found a good solution for this. I have created this function to get all the slugs and return them in an array. I am hoping ...
0
votes
1answer
20 views

Include Minit plugin in theme [closed]

I'm trying to include the Minit plugin in the inc folder of my WordPress theme and calling it in my functions.php file: require get_template_directory() . '/inc/minit-master/minit.php'; However, ...
6
votes
3answers
9k views

Load plugin on specific page only

I have plugin I would like to use only on the contact page, however the script and css is being loaded on every page. Aside from the increased http requests, it is also causing another script to not ...
0
votes
2answers
744 views

How to disable register and reset the password from WordPress admin panel?

How to disable register and reset the password from WordPress admin panel? Please I want to do this by codes without using plugins.
0
votes
2answers
382 views

Why doesn't the WordPress Importer update posts?

One can see from the code on the WordPress Importer Plugin that it was a thought decision to bail early when imported posts had post_title and post_date matching existing posts. For that reason, ...
0
votes
1answer
1k views

Woocommerce - Removing Cart button for specific product category when product of another specific category is not in cart

I am trying to remove Add to cart button from products under "car_tickets" category when any product from "bus_tickets" category is not in cart. This is my code so far. add_action('...
0
votes
0answers
23 views

WordPress with Web3Js

I am coming from a Node.Js environment and recently tried WordPress for fun. I have been able to create dAPPS with Node.Js by using ethereum's Web3.js and by connecting to an INFURA node. I am able ...
1
vote
1answer
2k views

How to allow HTML tags into WP Bakery (formerly Visual Composer) `textfield` parameter

While writing a custom element for WC Bakery (formerly Visual Composer) I've discovered that the HTML tags are being stripped from the textfield parameter type. It's sanitizing the textfield value by ...
0
votes
1answer
35 views

Send email when a user registers Rest api

currently using this plugin https://wordpress.org/plugins/wp-rest-user/ and there is a section where if you want to send a user an email when he/she registers (using wordpress as a headless CMS) ...
0
votes
0answers
39 views

How to re-render WordPress Gutenberg block?

I'am doing custom WP plugin that work with Gutenberg editor. One of functionality is that user select part of text in editor. Click on button. JS take selected text, process it and replace selected ...
0
votes
0answers
26 views

How to auto delete posts with specific keywords titled,tagged via cron?

I'd like to automatically delete all posts which contain specific keywords in their titles and tags via cron. How to do?
0
votes
1answer
681 views

Types plugin custom post add_action hooks

I'm using the wp-types plugin to create a custom post type. I'm developing my own plugin which I need to fire whenever a post of my custom post type is updated. Right now add_action( 'save_post', '...
0
votes
3answers
162 views

How can I fix the mixed content problems of the kk star ratings plugin?

I recently switched to ssl in order to provide a better and more secure website experience for my users. I nearly solved all of my mixed content issues, but the mixed content warnings of the ...
2
votes
1answer
3k views

How do I configure WordPress to talk to a Microsoft SQL Server database?

We have are building a WordPress site on our intranet site and wish to connect it to a Microsoft SQL Server. I have downloaded and configured PHP and PHP Manager on IIS. I have also downloaded SQL ...
0
votes
1answer
14 views

Plugin for an interactive image? [closed]

I'd like to make an interactive image like this one, so when a visitor hovers over that circle, some text dialog pops up. Does anybody know any WordPress plugin that could do that or atleast something ...
0
votes
3answers
620 views

site url is not working after migrtaion in worpress, all links are broken

I migrated a WordPress website on my sub directory and change both site_url from wp_options table.Flush the permalink as well but still links are broken. It seems that site_url() is not working. CSS, ...
0
votes
1answer
708 views

How to delete posts older than one year with post meta, post attachments and files?

Can anybody help me with a function to delete posts older than one year with postmeta, attachements and files? Tnx
-1
votes
1answer
19 views

Wordpress check box unchecked on null value ternary operator [plugin development]

I'm trying to use wordpress plugin development, without a checked checkbox getting an error. <?php global $options; ?> <input name="settings[enable]" type="checkbox" id="" value="1" <...
4
votes
5answers
10k views

How do I make my plugin load before the headers are output so I can redirect wordpress?

I wrote some code, that helps secure my clients files, and added it to wordpresses function file. however, whenever updates come in, it obviously overwrites my function. So I wanted to create it as a ...
1
vote
1answer
19 views

Force quit running background job

I am running background job by using add_action hook, hook starts on REST API CALL: if ( ! wp_next_scheduled( 'bg_job_hook' ) ) { wp_schedule_single_event( time(), 'bg_job_hook'); ...
0
votes
0answers
15 views

Enable plugin function on wordpress frontend

I have a chat app in my wordpress, I want to use that app in my frontend (every pages of the frontend, so a visitor can interact). How do i implement my plugin function to load on every pages of ...
-1
votes
1answer
32 views

Where can I save plugin data?

I created a plugin which has a shortcode that displays a button in a form. I would like to track the button clicks with an onclick() script and save the amount of clicks to a meta field. I am just not ...
0
votes
1answer
619 views

wp_insert_post() inside save_post(): force WP to not update global post object?

I wrote a custom plugin which inserts another metabox on the edit post screens. Once the user saves or publishes an article, I want to create another post with a custom post_type, which works great. ...
0
votes
2answers
701 views

How to add separator between default and custom panels in WordPress customizer?

I have implemented theme options using WordPress customizer with a mix of native WordPress customizer fields and Kirki framework. This works great. Now, I wonder if it is possible to add a separator ...
0
votes
1answer
785 views

Advanced Custom Fields (acf) - Filter Relationship by Taxonomies not Post Type

I have a Field Group looks like this: And I can only filter with Post type which is bad to me at the moment because Woocommerce using only product as Post type: And when I make a post I only see ...
0
votes
1answer
711 views

The plugin generated XXX characters of unexpected output…help?

I am working on a plugin that creates a custom post type and then creates a custom template file for the activated theme. The plugin is done editing. But I've received an error while uploading that ...
0
votes
1answer
662 views

Javascript in plugin not working

I'm working on a plugin that relies on several JS scripts. In my plugin file (graph-plugin.php) I've the following function: function initialize_scripts() { wp_register_script( 'int-flot', ...
0
votes
1answer
472 views

WordPress user account activation

How do I implement user account activation in WordPress? (This is not for multisite.) Once the user registers through the site or admin panel, the user should get an email with an activation link. ...
0
votes
1answer
638 views

Executing Javascript in Plugin

I am trying to display a google map using short code for a plugin I am building, but I can not get it to work. Does anyone have some advice on this? Here is my code: add_shortcode( 'show_map', array(...
0
votes
0answers
29 views

How to give user the choice to delete all data when uninstalling plugin

I'm about to finish my first plugin which give the users the possibility to mark their posts on an interactive map (great for travelers' blogs). The plugin uses : Post Metadata to store the latitude ...