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.

2,466 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
302 views

Sending HTML emails via wp_mail not working properly

Task to accomplish: 1) A user types information in a form 2) Via ajax (method: POST) the form gets posted to wordpress 3) Wordpress takes the form 4) Wordpress creates an HTML-email which contains ...
1
vote
0answers
61 views

Masonry images not working

Until yesterday, all 10 tiles were showing on the main page on this website. After updating 3-4 pages and adding a "blog" function to them (separated by category), only 3-6 tiles will show at any ...
1
vote
0answers
34 views

Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?

I recently purchased a 3rd party WP plugin (and started a site) with a view to starting a business. The plugin was first released only a few months ago.This particular plugin provides essential ...
1
vote
1answer
252 views

How to block XML-RPC attack?

Using Apache Web Server For blocking xmlrpc, adding this code into .htaccess file <Files xmlrpc.php> order allow,deny deny from all </Files> But while adding this The domain being ...
1
vote
1answer
29 views

WordPress plugin output formatting

I'm currently working on my very first Wordpress plugin, and it is coming along nicely. I do have one question about the formatting of the generated output. At the moment, the plugin outputs a table ...
1
vote
0answers
48 views

Plugin dependencies: show notice like theme plugins dependencies

I've developed a plugin that its core doesn't rely on any external plugin but there is some functionality that can be unlocked if others plugins are active. What I would like to achieve is to display ...
1
vote
0answers
245 views

Customizing NEXTGEN Gallery To link images to pages

Instead of linking to lightbox I'm trying to link my thumbnail images to a page or 3rd party website. I found http://astronautweb.co/nextgen-gallery-custom-thumbnail-link/ but was from 2011. I'm not ...
1
vote
1answer
421 views

How to redirect Old Post URL to new Post and keep Old post Comments?

How to redirect Old Post URL to new Post URL and keep Old post Comments? is it possible. can any one give me plugin to do this.
1
vote
0answers
73 views

What can be reason for no plugin-strings available under stable section on translate.wordpress.org?

I cannot see any plugin-strings under the stable section on translate.wordpress.org. What can be reasons for that? P.S.: Under development section, I can see all the plugin-strings.
1
vote
0answers
49 views

How generate 200% image size and save with suffix @2x

I need to know is it possible to generate 200%,200% image size and save with suffix @2x simply in WordPress? want to enable a simple retina ready theme.
1
vote
0answers
39 views

Finding which plugin uses cloudflare (due to GDPR)

after creating a wordpress homepage using quite a few existing plugins, due to the european GDPR (General Data Protection Regulation) i now have to limit the calls of any external resource to a ...
1
vote
1answer
399 views

Replace default og:image tag YOAST

I'm trying to replace the default image picked by yoast (featured image) with a custom with the relative og:image:width and og:image:height, but seems a mission impossible! I tryed with this: ...
1
vote
0answers
26 views

Are functions in main plugin file called before function bound to register_activation_hook runs?

In my plugin, I am doing a minimum-supported PHP version compatibility check via a function bound to register_activation_hook and halting activation for those on PHP version less than the minimum ...
1
vote
0answers
48 views

After plugin activation all users marked as Spam

I want to use Buddy Press. I `ve installed it, activated, then I automatically logged out. When I want to log me in – there is a message – my account is marked as spam. My Testaccount too. I think all ...
1
vote
0answers
43 views

Tracking changes in admin-page so user gets warning when leaving the page

An admin page with metaboxes and custom fields works fine, but when the user forgets to click "update" there is no warning "Leave Site? Changes you made may not be saved.". This warning only works on ...
1
vote
0answers
28 views

How to change wp prefix for custom post type only?

I have Two domain for e.g example.com (Database prefix wpone_) demo.example.com (Database prefix wptwo_) Database name: myrestaurant Database is the same for two domain just only prefix different ...
1
vote
0answers
49 views

create link/button to purge cloudflare cache on post

good day , how to create a button on post so that visitors can purge it own post cache on cloudflare ? i found this bash script and use to manually flush single url #!/bin/bash if [ -z "$1" ]; then ...
1
vote
0answers
147 views

Limit post creation by role

Hi I want to limit post count a role can create. I am currently using Bainternet Posts Creation Limits. It works from dashboard but not for rest api.
1
vote
0answers
78 views

I want to auto populate data in three fields if one drop down is selected

I just want to add auto populate in my WordPress plugin. If i select a value in drop down menu then on that drop down value based i want my three fields are auto filled. This is my js file code. ...
1
vote
0answers
19 views

Best place for if/else piece of code related to custom plugin?

Currently this code is placed inside header.php of my theme wp-content/themes/my-custom-theme/header.php. It's required for all pages. <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' )...
1
vote
0answers
569 views

Save custom attributes of product in woocommerce

I have some custom attributes for each product in woocommerce, I can edit them at the Attributes tab. I can also read them using this code $product = new WC_Product($product_id); $v = $product->...
1
vote
0answers
19 views

Making sure that a plugin's scripts and stylesheets are included for dynamicaly loaded content

I'm currently making a theme that uses admin-ajax.php to dynamicaly load pages and posts. Some of this content uses plugins like final tiles gallery and Video Embed & Thumbnail Generator. If ...
1
vote
0answers
163 views

correct way to include a library(and its dependent libraries) in wordpress development

I am trying to create a wordpress plugin using reactjs. I am facing an issue when I try to include a external library(react-image-lighbox) using wp_enqueue_script. what is the correct way to include a ...
1
vote
0answers
548 views

Filtering WooCommerce Orders by Category

I am using WooCommerce as an ordering system online. I will be having many categories for each products. How can I allow the admin or the shop manager to filter the orders page by product category? ...
1
vote
0answers
48 views

How to make a implement queue for scheduling tasks in WordPress?

Is it possible to implement some queuing mechanism for task scheduling? In my plugin, I want to run a task triggered by cron for 5 seconds and if not complete, save the state and call another Async ...
1
vote
1answer
57 views

Calling an attribute from a plugin shortcode

I'm using this plugin to show the reading time of my post: https://jasonyingling.me/reading-time-wp/ However, I have modified some stuff because I want to be able to use it with different languages ...
1
vote
0answers
414 views

Session destroyed on page redirect

I am developing a plugin where I have started a session on init hook. I have a form which when submit calls a function which uses SDK (i.e payment is handled here). If this function returns FALSE ...
1
vote
0answers
1k views

Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()

I am using a modified version of the Social Activity theme from CMS Masters, and was trying to change the hardcoded versioning of the stylesheet in the header in order to reflect CSS changes I made. ...
1
vote
0answers
249 views

WooCommerce Dynamic Cart Pricing

I needed to calculate the price of a typeface based on the 3 different licence values selected. I couldn't find a way of doing this with variations unless I created a variation for each possible ...
1
vote
0answers
35 views

Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category

Currently I don't have categories or anything else in my URLs, posts are just: www.domain.com/%postname%/ I am updating my permalink structure to include the category though (actually a category ...
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 ...
1
vote
1answer
88 views

Where these .js file come to source code?

on my blog in source code there are 3 Javascript also jquery file. It comes from wp-include but from where are them loaded? Can i not combined them in one file? My source: view-source:...
1
vote
0answers
17 views

Submit page limited in time to upload image

I’m not sure where to ask this and where to start to search for this kind of information. Excuses in advance if this is not the right place. I’m now the admin of a site done with Wordpress for and ...
1
vote
0answers
26 views

Deactivating all plugins and reactivating one by one, fixes conflicts. Why?

I was experiencing some Javascript errors thrown in Google Chrome debug console, so I have deactivated all plugins and then re-enabled them one by one. No more errors! How can it be that following ...
1
vote
0answers
516 views

Metabox not show in categories custom post type cmb2

it is possible to add a field in the categories (tags) in taxonomy? this is my code in functions.php function post_types(){ register_post_type('products',array( 'labels' =&...
1
vote
1answer
377 views

wp_verify_nonce() why return false?

I was to tried create theme options admin page (without settings API) in this code I'd like to know why wp_verify_nonce return false: main file <?php add_action('admin_menu', '...
1
vote
1answer
1k views

wp_insert_user - how to send verification email before logging in

Using below code, I am able to create an user. But when I am login, the user is directly logging in to dashboard and there is no email sent to verify the email address. Is there any way to send ...
1
vote
2answers
261 views

uninstall.php does not appear to trigger when uninstalling my plugin

i am new to plugin development in wordpress and i have have this simple test plugin that i am working on. The problem i am having is that the uninstall.php file does not appear to get trigger and as ...
1
vote
0answers
631 views

Why “Call to a member function on a non-object” in plugin only?

I am embarking on converting my PHP script, which calls a news search API to pull down news stories, in to a WordPress plugin. It's early days, I only really have the plugin header so far. I will ...
1
vote
0answers
65 views

Bulk edit WP posts to update embeded images with new alt tags

I have a client site that has approx. 2000 posts, most with 2-3 images embedded. Recently we've gone through the media gallery and given all the images proper meta data, clean titles, descriptions, ...
1
vote
1answer
98 views

How to remove plugin metaboxes from edit.php

I want to remove some metaboxes, that was added to page edit.php by thridparty plugins. I insert this code into functions.php: function vpm_remove_meta_box() { remove_meta_box( 'ortext-...
1
vote
0answers
106 views

Wordpress wp-admin/network/plugin-install

I am having issues that seem to be related to trying to change a multisite installation to use www. The site was initially setup without the www. I added code to .htaccess to redirect all urls to ...
1
vote
0answers
19 views

Plugin dropping pagination variable

I'm having problem with a plugin. In the plugin, I noticed the url string switches after the page load and the '&paged=#' disappears. For example: On page load: http://www.domain.com/wp-admin/...
1
vote
1answer
27 views

A new translation folder overrides my usual translation from “nowhere”

So I got to work on something really specific and strange on an old Wordpress I havn't edited already. The website is in French and English and this is a translation problem. To summaries the problem ...
1
vote
1answer
2k views

How to add checkboxes for a woocommerce product?

I have a wordpress site that does food catering. I want to be able to do the following configuration when placing an order: Days: Select the weekdays via checkboxes Food Options: Select the type of ...
1
vote
0answers
1k views

How to pull email and name from Flamingo plugin

I am trying to pull the name and email from the database and show on the front end of my website. I tried many scripts and looked on the flamingo forum as well. But couldnt find a solution. All the ...
1
vote
1answer
32 views

Is there a way to test that readme looks in other language before submitting translation?

I am adding the translation for my plugin's readme file in Spanish. I want to check if there is a way to test how my file will look on Wordpress site's page before submitting the translation?
1
vote
0answers
36 views

Wordpress plugin/theme or other wayout to create portable pages?

Here is my problem - I have my production server running my wordpress site. I have mirrored the site on my localhost to play around and make updates before I push them to production. Staging process ...
1
vote
2answers
38 views

Use of Templates in a Plugin

I´am creating a Plugin. For this I wrote my own templates. Now I want to have the templeates files in my Plugin directory. But that doenst work fine. Since I used the Plugin directory, wordpress ...
1
vote
1answer
46 views

Insert content of a post into another

I am writing a little plugin that creates a custom post type. I created a filter that copies the content of such a post into another one. Thereby I loop through all the custom posts. For each one I ...