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
1answer
43 views

Need to change buddypress profile url by add_rewrite_rule

I have some problem with wordpress/ buddypress url rewrite So i have a url like localhost/site/members/admin/jobs/it-job-create/ but need to make it localhost/site/members/admin/jobs/it-job/create/ ...
0
votes
1answer
41 views

Adding a brand column to WooCommerce Products

I'm going to attempt to add a brand column to the WooCommerce Products admin table, and also update the search filter so it searches for brands also. Has anybody done this before though? I've never ...
0
votes
0answers
20 views

How can I use get id with wp job manger category search?

Im trying to make a form that goes from the home page where you can fill out location and job sector from a drop down list and then its sends the values to the jobs page and search the jobs with the ...
1
vote
4answers
11k views

How to add multiple images to custom post type?

I would like to create a simple plugin to add multiple images to a custom post type. I have created a plugin to add a single image to a custom post type, but I am unable to figure out how to add ...
0
votes
0answers
20 views

Showing category not added after adding category

I am submitting "add category form" by triggering submit event on form with jQuery. It adds category but still show "Category not added error". $("#submit").on("click", function(){ ...
0
votes
1answer
17 views

Filter get_user_by instead of replace function

I have developed a plugin (despite minor understanding) that replaces pluggable function get_user_by to pull userdata from another source. While this works, it can lead to maintenance whenever there ...
0
votes
1answer
43 views

Action Links in Class located in Subdirectory of Plugin

A class for action links in a plugin loads properly if the class is placed inside the main plugin.php file. If the class is moved to a separate file located in a subdirectory of the plugin then the ...
0
votes
1answer
9 views

Theme editor removes backslashes

I'm having issues with backslashes being when saving changes to files in the Wordpress theme editor (theme-editor.php). So for example, Appearance > Editor > style.css I'm fairly certain that ...
0
votes
0answers
15 views

Submitting data to options.php from category admin page

I have created a new image field in Category taxonomy page which selects image using WordPress media up loader. Now I want to save the path of image and category name in wp_options table. I have ...
0
votes
0answers
20 views

Rewrite Rules: Post ID within Post Slug for a Custom Post Type

I've got my custom post type slug article and I need the following permalink structure: http://domain.com/article/postname-123/ The number in the end has to be the post ID. I don't want ...
1
vote
1answer
76 views

How to change post status from publish to draft using hook in wordpress?

I want to change the status of already publish post to draft using its id. add_action( 'save_post', 'change_post_status', 1 ); function change_post_status( $post_id ){ $my_post = array( ...
0
votes
0answers
8 views

WordPress plugin admin html being shown in Customizer iframe

I have a WordPress plugin that is focused soley on the admin side of things. I have a peice of HTML that is shown on all admin pages using the all_admin_notices hook. This worked very well but I ...
0
votes
1answer
28 views

Can the wp_posts table have the same slug (post_name) in multiple statuses (post_status)?

I'm using function get_posts to retrieve a set of post objects that are my custom post type (CPT). I am counting on being able to programmatically flip these posts between status "publish", "pending" ...
1
vote
1answer
92 views

Override mini-cart.php from plugin

(Its not the cache thing) Im creating a plugin that among other things modifies woocommerce template files. Before i placed woocommerce overrides in child theme. But i want to move it to the plugin to ...
0
votes
0answers
123 views

Get first_name on hook user_register

I have created a plugin for saving user info. I have used a action hook user_register, but I don’t get the values of first_name and last_name. What wrong in my code? ...
3
votes
1answer
20 views

Custom theme sufficient or custom plugin neccessary for this feature set?

I plan some sort of an event website. There are organisations, which can host zero, one or multiple events. Events are never published on their own. Events will be published as 'inline' snippets only, ...
1
vote
0answers
22 views

Convert checkbox to dropdown [closed]

I'm using WP Job Manager, and I want to convert the Job type checkbox into dropdown. How to do this? Thanks Here's the link: http://bit.ly/1OEzAwz
2
votes
1answer
80 views

Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]

What I eventually want to do is when user logged-in to the site, I want to redirect the to the page with all the post created by that user and I want to load them via AJAX request. I have save ...
0
votes
0answers
19 views

Remove spaces if entered in “site name” on Multisite reg form

I used this with the Paid Membership Pro plugin on Multisite. https://github.com/strangerstudios/pmpro-network Its a few years old but tried and it works with one slight issue. When someone enters ...
0
votes
1answer
65 views

I can't fetch query parameters ($_GET parameters) with get_query_var

I am developing pagination for a list of posts in my plugin. I've added a custom parameter in my plugin_functions.php file: add_query_arg('pworkspage', 1); As you can see it defaults to "1". Now, ...
0
votes
2answers
931 views

How to completely disable a taxonomy archive on the frontend?

I have registered three custom taxonomies. All three of these custom taxonomies are attached to my custom post type. There is only one taxonomy out of the three registered, that I would like not ...
0
votes
1answer
24 views

WordPress Plugin Development- When our plugin functions call?

Assume that I have created plugin to include custom post type called site and plugin to search result. Assume I have added only following code to my plugin. function searchAll( $query ) { if ( ...
0
votes
0answers
28 views

Setting API - Default values for options when active the plugin

I have registered two options called test33_header_logo and test33_advertising_code. I need to set default options(test33_header_logo="logo1",test33_advertising_code=123456" when activate the ...
0
votes
1answer
42 views

How to add Request header in WordPress remote api calls

Hey am new to WP development, can any one tell me how to add request headers in wp_remote_get() or wp_remote_post() remote api calls. I tried the following but didnt work $response = ...
-1
votes
2answers
24 views

The plugin generated 3265 characters of unexpected output

I am trying to built fancybox plugins.I added all js and css file to my php file and add one image to it ,but I found this error. The plugins generated 3265 characters of unexpected output during ...
0
votes
0answers
17 views

Should I make a plugin or modify the default theme? [duplicate]

My project is this: to modify an existing plugin to add payment functionality that is not currently available for download as a separate plugin. So I need to code it all myself. I've begun this ...
0
votes
1answer
21 views

Odd map_meta_cap $args on post edit — sometimes integer, sometimes string

I've been digging into the map_meta_cap filter since I need to extend the user's capabilities based on context, in certain situations. This is working well but in my traces I noticed something odd ...
0
votes
1answer
67 views

Display custom post type archive on page.php template

I want to display the custom post type archive of my plugin inside a normal page template. My approach was: function my_include_template($template) { global $post; if ( ...
0
votes
1answer
33 views

what is -> -> means in wordpress

I'm bit confusing what is the meaning of this line. $show_title = Ninja_Forms()->form( $form_id )->get_setting( 'show_title' ); "-> ->" available in PHP or it used only within wordpress.
1
vote
1answer
35 views

Is license need for free wordpress plugin

I'm developing a new WordPress, So i'm a beginner. I'm referring a plugin to create a readme.txt file. I've seen that two lines. License: GPLv2 or later License URI: ...
0
votes
1answer
14 views

Exclude specifed files from plugin editor

I just wonder is any chance to exclude custom plugin files from Wordpress plugin editor. I don't want give access to couple files from my plugin form wp-admin users. I try to use tips from link ...
14
votes
3answers
2k views

How many times will this code run? (or, how rich is grandma?)

Hypothetical example but real world applicability (for someone learning, like me). Given this code: <?php function send_money_to_grandma() { internetofThings("send grandma","$1"); } ...
0
votes
0answers
10 views

How to validate user subscription with paypal?

I have created a custom role for my wp site, i also created a custom user register form for this role, i want to charge an amount before the user can finally subscribe. Is this possible, i'm doing ...
0
votes
2answers
22 views

Trying to get class to instantiate ONCE (or, “why do I keep punching myself in the head?”)

Here's a very simple plugin, which I drop into mu_plugins in my multisite installation: <?php /* Plugin Name: Test */ class myclass { function __construct() { error_log("I just ...
1
vote
3answers
52 views

Trying to understand order and frequency of action hooks firing

I'm working on a plugin that modifies user capabilities and turns off a lot of things in the Admin pages. I'm having some problems with order of execution with my code, so I want to refactor it and ...
0
votes
2answers
32 views

How to change a field in database through a submit button or Checkbox? [closed]

I'm trying to create a plugin for wordpress where the form stores data in a database. I'm trying to make a submit button to update the status (field) of one row from 0 to 1 but its updating all the ...
0
votes
0answers
22 views

How to pass variables to attributes to variations, of a Woocomerce variable product?

I am developing a plugin to make a API available. In this effort i am trying to Adapt woocomerce functionality to my plugin. I have a function that it is supposed to create a variation and fill the ...
0
votes
3answers
36 views

Sending Parameter Failed

This is so basic, but i couldn't understand why it's not working, i'm trying to send parameter from add_action(), this is my code in my function.php: function testingID( $testParam) { ...
0
votes
1answer
19 views

widget: input the px value from user and use it as inline style in widget function

I am trying to dynamically add margin-bottom property to my widget. For example, I am inputting the value "50px" from my widget and want to use this value to adjust margin-bottom property for the ...
0
votes
3answers
906 views

How to store accumulate multiple option values in a single array using Options_API

I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
0
votes
1answer
37 views

Enqueue script not working

This is my code to enqueue scripts. The later one with title yourscript2 is working, but the first one with title upload is not working: add_action( 'wp_enqueue_scripts', 'add_my_script' ); function ...
1
vote
0answers
26 views

Converting acf repetears to a datatable on frontend [closed]

I'm working on this more then 2 weeks and its driving me crazy. I'm really hope to find some help here so thanks in advanced for your time. My problem: because I don't even know if my way is feasible ...
0
votes
0answers
35 views

Plugin options page - form with two different submit buttons

In my plugin options page I have two buttons, netted way down looks like this - a single form, with two submit buttons. <form action="options.php" method="post"> <input id="submit_button" ...
0
votes
1answer
21 views

How to allow only two (or more) users access to a plugin

I need to allow two specific users, not groups, to use a certain plugin that is listed in the admin menu area. I have this code which allows one user (user id = 2) to see the plugin : add_menu_page( ...
1
vote
1answer
30 views

Is it possible to sort metabox teaxtarea values?

Textarea is on an options page, is it possible to sort the values within that textarea by alpha? I looked in the Codex but do not see any mention of sorting these values.
15
votes
3answers
12k views

Should I use wpdb prepare?

I'm new to SQL and am wondering if I need to use wpdb->prepare for the following query to a table I've created global $wpdb; $tablename = $wpdb->prefix . "my_custom_table"; $sql = "SELECT * ...
0
votes
1answer
55 views

WP Cron as Fast as WordPress AJAX?

I have a question about performing a very long and resource intensive task within WordPress. Here is the scenario. I have a plugin that allows users to run a task that takes a very long time and ...
0
votes
1answer
27 views

Create a select metabox that the user can pupolate?

I have been working on a plugin that uses text area metaboxes on an options page to populate drop downs in the CPT area. I was with the help of some others able to get the list to show in the select ...
0
votes
0answers
15 views

How to limit each front-end user to view just his own uploaded files on Amazon S3?

In my Wordpress website Users can upload video files directly to a Amazon S3 bucket, all of them use the SAME bucket for their uploads. After the upload is done each user should be able to view/delete ...
0
votes
1answer
65 views

PHP calling function within a class

I'm writing my own php class and I have multiple functions within the class. Something like this: class JSON_API_Hello_Controller { public function test_cat(){ global $json_api; ...