WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins.

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

Add version query tag to all images

I want caching all images on my site and prevent the browser download the images all times, so I would like add an version query tag to all images (for example: ?v=20160505) How can I add this for ...
0
votes
0answers
12 views

External Authentication, session_tokens not destroyed on logout

There are many questions and answers on external authentication and some code prior to WordPress 4.0 need some tweaking to get them to work. For example, adding a fourth parameter to the ...
0
votes
1answer
20 views

Suggestions on Approach to New Plugin I'm Stuck On

I'm a newbie plugin developer, and I've had an idea for what I though would be a simple to build debut plugin, but I seem to have reached a brick wall with it and wonder if anyone can suggest some ...
-2
votes
0answers
10 views

How to remove malware in wordpress site? [on hold]

My site is hacked. I am searching lot of but not getting any solutions. Please give me any suggestion how to remove malware or how to find out malware in my wordpress site.
0
votes
0answers
32 views

Fixing the WP Post Object for Custom Route

I'm currently in the process of building a custom plugin for a client that involves displaying front end user profiles for any "subscribers". These profiles will be populated with various user meta as ...
-3
votes
1answer
33 views

How can I interact with a third party service that sends POST requests to me in response to the order information that I send them?

I'm developing a payment gateway for Wordpress. I should send the data to a third party and get the confirmation code (and other info) from them. The problem is that they don't return this ...
0
votes
1answer
14 views

Make a plugin page out of influence of the theme's style

I have to make several change to my style to be with what i want, when i export a project to a wordpress plugins : Based on this : When including it into a plugin, i finally got this : This ...
1
vote
1answer
687 views

Display custom fields in frontside user profile

I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile. I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
0
votes
0answers
9 views

Overriding search from plugin

I have some code that I would like to hook into search.php for all themes on a MultiSite network. It would be written to a plugin so when a search query is run given the conditions are met the code ...
-2
votes
1answer
19 views

Best Way to Inventory the Media Library of a 200+ Multisite Installation?

I have a multisite installation of WordPress with 200+ sites. I recently was tasked to do an inventory of each site's media library and was wondering if this could be accomplished programmatically ...
0
votes
1answer
14 views

Multi hook deploiement

Having this : <?php class Planner_plugin{ public function __construct(){ add_shortcode('planner::display', array($this, 'display_planner')); register_activation_hook( ...
-1
votes
0answers
13 views

Wordpress with Sensei plugin. Trigger action on page load

I am trying to set up a some fairly basic functionality on a wordpress website through a plugin. The website is academic, and is using the Sensei-plugin from WooThemes to set up a framework for ...
0
votes
1answer
21 views

Visual Composer custom markup for custom shortcode (vc_map)

Trying to get custom_markup to work with the Visual Composer builder for WordPress. Here's some documentation for the vc_map function ...
1
vote
3answers
46 views

Add code inside specific wordpress standard function

Is it possible to add a piece of code snippets inside wordpress standard function ? In my case I am developing a plugin that will trace the exact location of the caller of wp_delete_attachment method ...
1
vote
0answers
31 views

Editable form for WordPress plugin options page

For my new plugin Scripts and Tags Manager I want to add the possibility for the users to edit rows and add / remove rows. Each row is a form element that contains a text field for the dynamic ...
0
votes
1answer
22 views

After plugin activation hook

Does it OK, to send email (to me) after user activate my plugin? Does it a right way to do that (https://developer.wordpress.org/plugins/the-basics/activation-deactivation-hooks/) with hook? thanks
1
vote
1answer
5k views

Auto gallery from folder contents

I want to create a WordPress shortcode that will add an automated gallery of the contents in a folder. I am currently trying to implement this in a site that publishes 12 annual magazine issues, so as ...
2
votes
2answers
796 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
-3
votes
0answers
15 views

How can I show last 10 post with JSON and PHP? [on hold]

Firstly, I'am sorry for my bad English. I want to show my last 10 post with PHP from my JSON. I made a PHP page and I get some errors. I fixed some but an error comes again. If you had an alternative ...
2
votes
1answer
20 views

Override plugin localization

Is it possible to override the localization files provided (or not provided) by a 3rd party plugin? A plugin that I'm using now doesn't have any language files but I want to avoid having a future ...
0
votes
0answers
29 views

Storing Unique Data on the Database

I have created a custom table on my database using the code below: function dbcreator_activate() { global $wpdb; $table_name = $wpdb->prefix . "ftbstatistics"; if( ...
0
votes
1answer
50 views

Programmatically Create Menu Link For WooCommerce Memberships [closed]

I'm using WooCommerce + Memberships and need to add a direct link to the Memberships "Member Area" in my primary nav. Due to the fact that the Memberships "Member Area" section contains the id of the ...
0
votes
0answers
7 views

Woo-commerce: Hiding archived products from the front end when logged as admin

With Woo-commerce archived products appear on the front end of the site when a user is logged in to the WP-Admin area. Is anyone aware of way to prevent archived products from being displayed like ...
-1
votes
0answers
16 views

WP function get_error_message() returns message always in English

I use qTranslate-X and a custom login form for users. If user login or password is incorrect I have called get_error_message() for message displaying. It all times return English string. I have ...
0
votes
0answers
8 views

Saving option values in array using register_settings and add_settings_field [duplicate]

I've been able to save different options as single options in the database. What I'm trying to do is to save them all in one single row, using an array. This is my code: register_setting( ...
1
vote
1answer
569 views

How to get Login Error messages on a custom template

I want to display login form and process the login on the same page, so that if there is any login error it should display the error messages on the same page. I have added this function: ...
0
votes
1answer
50 views

Foreach in get_post_types to apply a different filter per post type

I have a class in my plugin with the following function: protected function get_post_types($output='names') { if (! is_array($post_types = get_post_types(array( 'show_ui' => true ), $output))) ...
0
votes
0answers
23 views

Tracing which wordpress php script executes specific actions

Is there any way to trace which php script in wordpress executes a specific actions ? In my case I want to trace which php file in wordpress whether a plugin script , theme script or standard ...
4
votes
3answers
2k views

body_class hook for admin pages

The body_class hook seem only to work with non-admin pages. When I do add_filter('body_class', 'add_body_classes'); function add_body_classes($classes) { $classes[] = 'myclass'; ...
0
votes
0answers
24 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
0
votes
0answers
8 views

Set rules for file uploads to dynamically hide/show menu items

I am curious if anyone has a clue about this? Upload a file. If file meets certain criteria, link the file dynamically to a menu item If file is linked, the menu item will show. Until an associated ...
1
vote
1answer
28 views

Plugin Options Not Saving to Database in WP 4.5

WordPress 4.5 broke my plugin and there are no obvious clues why in the change log The plugin controls the visibility of menu items. Users select one or more countries and whether to show or hide the ...
0
votes
2answers
2k views

How to append new form elements in “Add New” form of Users in Wordpress admin panel?

I'm developing a WordPress plugin and I want to append some extra form fields in add new form of Users section inside admin panel without editing core files. Can somebody help me in achieving this.
0
votes
0answers
16 views

Passing Numbers & Letters in Query Strings

I have been fumbling around with this for 45 minutes now, and can't seem to get anything working 100% as I need it to. I am developing a plugin to allow multiple query strings (1 for "level" and 1 ...
0
votes
0answers
5 views

Option tree wordpress options plugin not save key values

I use this plugin for save values for my theme , actually in localhost in my server works fine , but when i install in production server not works The problem it´s with the keys , if i build a key ...
0
votes
1answer
22 views

Option page's form doesn't work

I have two option pages: General Options > MyOptionPage1 and CustomPostType > MyOptionPage2 Both have a form, but the after clicking Save in second option page I land in the 404 page. Here is ...
2
votes
1answer
3k views

get_template_part from plugin

This is default get_template_part function inside WordPress: function get_template_part( $slug, $name = null ) { do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); ...
0
votes
1answer
436 views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
-1
votes
0answers
20 views

Events Plugin on WP Multisite

I recently created a website for an organization that hosts many events each year, and in their site I tried to build a custom events plugin. It worked great on my local environment, but gave their ...
0
votes
1answer
25 views

Calling a save function from a “submit” button

I am trying to call a function to save changes from a submit button, but I am not accustomed to PHP programming, as I have just started. I tried Googling around a bit, but didn't find anything too ...
0
votes
2answers
32 views

Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?

This is my first go at making my own shortcode. What I am trying to do I have 11 different outputs for star ratings I want to be able to use in posts. I want to wrap it all into one shortcode, and ...
0
votes
0answers
13 views

Access submenu without giving access to menu page

I have created a custom post type 'book' and added few submenu's to it, which are also custom post types eg (novel, science, history etc.). I added seperate capabilities to all of the custom post ...
0
votes
1answer
2k views

How does “Your comment is awaiting moderation” work?

The question here is if someone could help me to make the comment "Your comment is awaiting moderation" work correctly for custom page. It works ok for standard Wordpress page but not for my own page. ...
2
votes
1answer
749 views

save_post hook not triggered in WP v3.6.1

I developed a plugin having a custom metabox that is using the save_post hook to store data. The plugin is 18 months old and is used by thousands of customers, so I'm pretty sure everything is good. ...
1
vote
1answer
33 views

Order of Operation for these three hooks

What is the order of firing for these three hooks? add_filter( 'comments_array', array( $this, 'BuildCommentsArray' ), 10, 2 ); add_action( 'preprocess_comment', array( $this, 'write' ), 10, ...
6
votes
4answers
745 views

Prevent network activation of plugin

I have a plugin that currently doesn't support network activation. The best fix for this of course is to fix it :) which I plan to do. However I wonder if there is a temporary solution I can use to ...
1
vote
1answer
29 views

Verify if user is wordpress logged in from another app since wordpress 4.0

I try to implement in my Node.js app a way to verify if the user cookie is valid. I've found some post in internet who explain me very well the things, but as i try to implement it, with the ...
-1
votes
0answers
19 views

Table of content in sidebar of Paginated posts

I am trying to work out a way to display an automatic table of content for paginated posts. I want to display it in a side bar widget and make the widget sticky to go down when the visitor scroll ...
0
votes
2answers
31 views

Is it save to use eval for a jQuery callback method coming from the database?

I'll be brief and hope I can explain my scenario correctly. Here's my scenario. The jQuery slider plugin has an anonymous callback method. I would like to give the Admin the ability to create a ...
0
votes
2answers
13 views

Change plugin name on WordPres repo

Months ago i have created a simple WordPress plugin that shows Latest post with thumbnails, but as the plugin name includes the word "Ads" it has been a report from a user that the plguin assets are ...