We’re rewarding the question askers & reputations are being recalculated! Read more.

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,677 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
93 views

Access Wordpress data from external PHP application.

I am a volunteer in a non-profit organization. I have taken over maintenance of a number of apps written in PHP/SQL/Dreamweaver. The apps are over 10 years old. I am migrating these apps from PHP/SQL ...
1
vote
0answers
139 views

Can't create term for product attribute

Please help. I need to create product attribute term after I create a product attribute taxonomy. wc_create_attribute([ 'name' => 'Size', 'slug' => 'size' ]); // This will only work If I ...
1
vote
0answers
128 views

Basic Object Oriented plugin question

I'm looking to create a plugin that displays a custom posts label for posts that belong to selected categories. And since I'm new to OOP, I'm struggling to understand whether to use arrays instead of ...
1
vote
0answers
122 views

How to import multiple language mutations to polylang?

I have set of posts that i want to import to wp and they alel have 3 lang mutations. I used foreach($pole as $key => $objekt){ $postid = wp_insert_post(array('post_type' => 'etapa','...
1
vote
0answers
20 views

How to remove traces from widget during uninstallation

I have a small plugin, which registers a custom widget and now I am wondering how to remove all traces of this widget when the plugin is removed through the administration. If I look in the database ...
1
vote
0answers
192 views

Change Product Addon price based on select Variation

I am running WooCommerce and WooCommerce Product Add-ons. Is there a way on a Variable product to have the price of an addon be different based on the selected Variation? Example: Three Size ...
1
vote
0answers
69 views

WooCommerce - Maximum qty per line per product

I have a WordPress site using Woo-commerce as the shop. We want to be able to set some maximum limits for each product so that if someone wants to order 40 of Product A, but we have set Product A to ...
1
vote
1answer
29 views

Change permalinks of custom post type 'question' as post id or any random number once

I need to display questions like this from quizzes/quiz-1/question-1 to quizzes/quiz-1/%question-post-id%/ I have changed $permalink = $permalink . $question_id; but it does not work. Any help would ...
1
vote
0answers
48 views

How to edit content before post update

I'm creating a plugin that enables the user to highlight certain words (long words, long sentences etc.) in the TinyMCE Editor. You can see a live version here: https://tekstr.dk/app I'm converting ...
1
vote
0answers
52 views

How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?

I am using the WYSIWYG editor as a custom field using ACF plugin to insert a custom table in the field. As a data, the table needed is simply the HTML Markup of it only, only attributes specific to ...
1
vote
0answers
24 views

Post category with counts been display like a menu

It is possible to display a post category list and counts like a vertical menu with some images icon in each post category.
1
vote
0answers
32 views

Get Time Taken By Each Action Hook in Wordpress

I am developing a Plugin, and want to record Time taken by each Action Hook, I am able to get all the Hooks Triggered on a Page with the Action and Priority, but i am unable to get the Time taken by ...
1
vote
0answers
450 views

admin-ajax returning 400 error when request is made with Fetch API

I'm developing a plugin with an ajax handler. I first coded the ajax request setting up the XHR object. Looks like this: var data = new FormData(); data.append('post_title', 'Hola como'); data....
1
vote
1answer
50 views

Blacklist IP After Using WordPress Plugin Detector?

I searched a website to see what some of the plugins it is using. I used: http://wppluginchecker.earthpeople.se/ Now when I visit the website, it looks like the CSS is missing. I have been told this ...
1
vote
0answers
132 views

Buddypress - Add the post_id in the bp_activity_add function

I would like to create an post-based contextual activity stream to create an activity that is related to the post where we wrote it, I almost done. I’m using a shortcode on the function.php to show ...
1
vote
0answers
46 views

Send reply with pre-prepared answers

Do you know the way to ask users' comments with pre-prepared answers? What i want is very simple and more like a comments section that only can select and remove emojis without typing and have 4 ...
1
vote
0answers
22 views

Setting the profile picture from another field

I have a user registration a profile plugin where user has the ability to upload a top cover photo of their profile and hence it also has the cover photo option under the users tab in wp admin. What i ...
1
vote
0answers
23 views

Linux Permissions and Ownership for WordPress

I installed WordPress via ftp upload to our server using my ftp user account. This account is different than the user that runs http/Apache. I am now trying to install themes and plugins and I am ...
1
vote
0answers
414 views

Woocommerce Create custom product type with variations

I have a plugin of booking that create a new product type of WC_Product. I'll like to change this booking product type for variable booking product type (new product type of WC_Product_Variation or ...
1
vote
0answers
89 views

posts comments goes to trash

My website was working fine until today, I just discovered that all comments made goes straight to trash. I did not install new plugins, I don't have akismet. It just started. I have deactivated all ...
1
vote
0answers
64 views

Wordpress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin

I am creating a wordpress plugin which upon activation i create my database table. I have an .sql file which has ~2000 rows of data and i would like to execute it after the creation of my database ...
1
vote
0answers
19 views

Facebook Messager Plugin

I deregister Wordpress's default jquery and register the latest jquery. The problem I faced with the Facebook Messenger plugin relied on Wordpress's default to function. Also when I hashed out the ...
1
vote
0answers
35 views

Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working

Basically I want to create a plugin that provides a shortcode for use anywhere. This plugin will query the user's preferences and render another shortcode/plugin with proper settings (to cater ...
1
vote
1answer
39 views

install robots.txt to wordpress website admin

our website is http://syno-int.co.kr and using wordpress. I tried to install robots.txt to plugin section, but when I put zip file in it, it shows like this. Unable to create directory wp-content/...
1
vote
0answers
21 views

Wordpress site periodically goes down

my site https://mediatrends.me/ periodically goes down. It works fine and then all of a sudden any page becomes unreachable in every web browser. "site can't be reached", etc. After a few minutes it ...
1
vote
0answers
669 views

Send form data to api in wordpress

Problem I want to send my wordpress form data to my .Net API. Link of my api http://remote.hhds.com.au:49172/API/api/addonlinebookings?jsonData=@test I am using Contact form 7 and also use contact ...
1
vote
0answers
40 views

Server configuration for WordPress - Do I need install PHP-SSH extensions for Wordpress on Fedora28?

Migrated from Stackoverflow & Unix & Linux: Recently I tried to setup a Wordpress server on Fedora28 based droplet on Digital Ocean. A followed some tutorials and the result was the same: ...
1
vote
0answers
26 views

limit value taxonomy based on previous taxonomy value wordpress

I have created a custom Post Type which Holds up-to Two Taxonomies called "country"- values: "USA", "Russia", "China" , "city" - values: "Chicago", "Moscow", "Beijing", I want when user in taxonomy "...
1
vote
1answer
169 views

Dynamic dropdown select values depending on other custom field value

i have custom fields like this: "country" - values: "USA", "Russia", "China" "city" - values: "Chicago", "Moscow", "Beijing" I want when user in custom field "country" choose value "USA" after that ...
1
vote
0answers
14 views

Contributive page where people logged in can write

I'd like to have a page on my wordpress site where people can add a content really simply. They would click on a link that open a popup where they can login, add a content, and that's it. It would be ...
1
vote
0answers
14 views

User registration

I'm working on a WP project where I want the user to be able to register via my WP page, and later I want to receive a mail about this user info, To either confirm or deny their registration (this I ...
1
vote
0answers
342 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
80 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
38 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
288 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
31 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
55 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
290 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
512 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
55 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
40 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
2answers
500 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
56 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
31 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
55 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
178 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
106 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' )...