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
2answers
30 views

Can I use namespaces in my plugin?

I am building a plugin that I hope to eventually put on Envato CodeCanyon. Currently I am creating functions of the form mypluginname_action. This is quickly becoming silly as I have to do that a ...
1
vote
1answer
70 views

Adding dynamic section to WordPress

[Edit: I've added a more concrete example below] I need to convert a custom PHP site to WordPress. The site has 60,000+ media items along with a ton of metadata, all of which needs to carry over to ...
0
votes
1answer
24 views

What do “and” means infront of a variable? [closed]

When we use & in argument in function it means if we change the variable inside that function the variable will be not be changed outside. <?php function add_10(&$number) { $number ...
0
votes
0answers
9 views

Add Flatr button to Sharing option

I know adding a Flatr button to the sharing option is possible on wordpress.com and I wondered if there is a way to do so on a self hosted wordpress ? If not, do I have to create my own plugin or is ...
3
votes
1answer
51 views

How does WordPress treat rewrite rules “under the hood”?

I am messing around with WordPress, trying to get a good grasp of the thinking behind conventions used in WordPress. I came across a question, and my searches fell short of explaining what I was ...
0
votes
1answer
38 views

get_users() not returning all users in site

I'm fairly new to wordpress/php development, so forgive me if this is a stupid question. I'm trying to get a list of all the users with metadata in order to export them to a CSV file. We currently ...
0
votes
1answer
85 views

How can I hook into existing WordPress Bulk actions?

I am creating a plugin which syncs both standard WP data and custom fields within a custom meta box on post edit pages, to an external resource using SQL queries. However my functions are currently ...
0
votes
0answers
31 views

add_order_item from custom endpoint

Im useing WP>Woocommerce->Woocommerce subscriptions I have created a custom endpoint: /edit-subscription/. You can see exactly what i did in the last comment here: ...
0
votes
2answers
27 views

How to write to a separate PHP file in plugin settings

I need a way of taking a variable from a plugin's settings and write it to a small key file located in the plugin's directory. The entire contents of the key file is this: <?php $transaction_key ...
1
vote
3answers
119 views

How to Download and install plugin database remotely

I have the following problem. I got a plugin that is huge due to all the data needed. The data is all the countries and cities in the world and also a maxmind.mmdb database. 1 - Issue Currently I ...
0
votes
0answers
11 views

Posting from WP admin to another WP blog

I have 10 WP websites. One of them, or it can be any of them, but for simplicity , let's say that... one of them have a content (custom content type) that I want to post on 2 or 3 from others (the ...
0
votes
0answers
54 views

Call Function sanitize_callback for each times

I want to call function for my each register_setting option, i have more that 24 registered option and i think there is better way to call the sanitize one time than i create each function to handle ...
0
votes
1answer
33 views

How to fix Uninitialized string offset: error on a checkbox in WP Settings API

I am trying to create an options page with a checkbox field. The checkbox is working fine but when I uncheck it and save settings, an error string shows on Notice: Uninitialized string offset: 0 in ...
0
votes
0answers
14 views

Add menu section and items to the Appearance > Menus page

I am writing a plugin that creates some virtual pages according to How do you create a "virtual" page in WordPress. I want to be able to add these virtual pages as options in the Appearance ...
0
votes
0answers
18 views

Acf post object problem

I am creating a job portal website in wordpress i am using acf and custom ui for custom fields i created custom field with post object for custom post type when the job seeker add a application the ...
0
votes
0answers
11 views

Tie specific functions to options-update for limiting API requests

I'm coding an update for my Mollie payment gateway plugin for WordPress (for Easy Digital Downloads). The old plugin only performs one API call to the Payment Gateway, when processing a payment. The ...
0
votes
0answers
25 views

How can I write the following URL in wordpress

I am working on a project, and one of the biggest parameters was that we keep existing data and URL structures intact. the decision was made long before me to switch from an old, crappy codeignitor ...
0
votes
0answers
16 views

Add view in wordpress admin area by plugin

I have a list like this: when click on view then the url open like this: http://103.231.44.154/flightplan/wp-admin/admin.php?page=views&id=112 But the page show: You do not have sufficient ...
1
vote
1answer
89 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
14 views

Add code to header from a plugin

Maybe I just don't know the correct language to search for, but I just can't find the answer anywhere. There are plugins out there that you can configure in the Wordpress backend, which add js or html ...
0
votes
1answer
21 views

Change localization only for plugin

I have a wp plugin with the required .pot and .mo localization files. Everything works fine, if I change the wordpress language, the plugin language changes too. But some users has requested if I ...
0
votes
1answer
29 views

Get audio metadata on file upload

I am trying to fetch all audio metadata when I upload a file. This all happens in a plugin, and I currently use the add_attachment action to trigger my custom function : // link add_action( ...
0
votes
0answers
19 views

Allow network sites but also allow single sites

Ok, I think I really need some help here. I am feeling like this is more complicated then it should be. Here is my aim. If plugin is used on single wordpress site than allow and use the class ...
0
votes
1answer
25 views

Short code not working in boostrap modal dont no why?

I am trying to put a pluign into a short code it works on the page but when i try to insert it into a modal popup it doesnt render correct at all. <div id="thanks" class="modal fade" tabindex="-1" ...
0
votes
0answers
27 views

Buddypress orderby groupmeta data

So I have been looking everywhere on how to do this. I am working within a custom plugin. I have figured out how to filter results from groups by groupmeta. Though what I seem to be stuck on is being ...
1
vote
1answer
32 views

Adding functions to hooks from within a class

Below is a trimmed down version of my plugin, to keep it simple. My setup function is being called, but when I go to the login page, it's not dying like it should. I had the plugin working earlier, ...
0
votes
1answer
21 views

How to get author developer link on plugin page

When I upload my plugin to Wordpress's repository it currently shows my full name as the author. It doesn't link to my profile though. I've tried changing the author name to my username, but it still ...
0
votes
0answers
61 views

how to load posts with ajax and auto update post link to url in wordpress

hai i am here with a problem in wordpress devlopment. Hope i will find here. The problem is i have to write code in wordpress so that if user click on any post link then the url goes to ...
0
votes
0answers
36 views

Custom Taxonomies in Custom Post Type - slug rewrite is not working

In a plugin, I have created a custom post type 'Movies' and two custom taxonomies 'Genres' and 'Studios'. For the post type, I need the permalink to be 'localhost/movies/movie-name'. So in rewrite ...
-2
votes
1answer
37 views

Wordpress s2 member plugin not working [closed]

I had use the s2 member plugin for registration.When i register it as new member it shows password where send by email but i cant get any mail upon registration please anyone help me
0
votes
1answer
40 views

How to set custom homepage via a plugin

I am developing a plugin movie database plugin and i want set few custom templates to wordpress theme using the plugin. how can I achieve this?
0
votes
0answers
84 views

Get and Display Content in wp_editor

I am building a simple plugin where I display a visual editor in the backend. My Code looks like this: $content = ''; $editor_id = 'ssp-editor'; $settings = array('textarea_name' => ...
0
votes
0answers
18 views

wp_schedule_event need to deactivate plugin changing recurrance

I currently developing a plug that has wp_schedule_event , the purpose of wp_schedule_event to my plugin is i want my plugin so send an email depends on recurrance of the wp_schedule_event. I also ...
0
votes
0answers
54 views

Integrating Fullpage.js Plugin with other WordPress plugins: Issues with other plugins displaying on FP template pages?

I'm adding this question from the general stack exchange page here: hope that's alright! I recently followed this post on integrating FullPage.js as a WordPress plugin. I'm having trouble getting ...
0
votes
0answers
25 views

Why isn't my plugin seeing other classes?

I've written some very simple code based off of this tutorial by Harish Chouhan on the Plugins API: /** Add Plugins API if not already existing */ if ( ! function_exists( 'plugins_api' ) ) ...
0
votes
2answers
40 views

Re-writing MySQl query for execute faster

Can any one re-write this SQL query to perform better? At present this query takes about 29 seconds to execute in BlueHost server while it takes 6 seconds in HostGator.com server. My intention is ...
0
votes
1answer
33 views

add_theme_support using a plugin

I want to create a theme specific plugin for the opern-sourced Bootstrap Genesis theme where I can use the add_theme_support function to add or remove several mini plugins or theme modules/features ...
0
votes
0answers
24 views

How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data

How we have to manage the creation / deletion of custom post types and taxonomies in a plugin? For example i write a plugin that creates a new custom post type and an associated custom taxonomy. ...
0
votes
1answer
21 views

Simple Search Plugin Does Not Perform Search

Created a very simple plugin to display a custom search form. No errors, but not performing search. I may be over my head and leaving out one or many requirements. My plugin code: /** * Begin ...
0
votes
0answers
17 views

Merge Codes using redux framework

I am trying to use the redux frame work for my options panel in a theme i have seen some theme optiosn supply a mail merge style button to include fields to be inserted into text area Ie I want to ...
0
votes
1answer
13 views

Referencing files in JavaScript in WordPress Plugin

I have a JavaScript file in my plugin in which I need to reference a sound file to play when any link is clicked in any front end page. I did it like this: my_plugin/my_plugin.php function ...
0
votes
0answers
18 views

Filtering custom posts

I have to add functionality to my wordpress site that displays some custom posts. However I need to filter the output based on multiple categories/taxonomies (I dont know whether to use ...
0
votes
1answer
27 views

How programatically cause uploads folder to be created?

My plugin uses the uploads folder to store some files for configuration (as that folder is writable on all installs and I've had issues with Wordpress deleting files elsewhere on some installations). ...
0
votes
3answers
403 views

create web service for android app using wordpress website

I have to create Web services for android app using WordPress Database. where user can login and register using android app. that record will be saved in WordPress database. display All the posts of ...
0
votes
0answers
35 views

How to block a script from loading based on the source

For a plugin I am developing for a company that is active in both Europe and Asia I am trying to block certain plugins and scripts from loading for visitors that are located in China. I have been ...
0
votes
1answer
88 views

Update Data parameter of a wp_localize_script() call

I'm working on a child theme, In my-page-template.php I have : //... $current_key= 5; //calculated result wp_localize_script('my_js', 'ajaxload', array('post_id' => $current_key)); In my_js.js ...
0
votes
0answers
17 views

Protect my plugins document ready JS from errors from other plugins

I'm creating a plugin where I add some event listeners etc. Nothing fancy. I'm using the document ready event and it's working fine. The only problem is, that other plugins may cause JS errors into ...
0
votes
1answer
64 views

Add placeholder into contact form 7 recaptcha text field

I want to add "Placeholder" into contact form 7 really-simple-recaptcha plugin text field. I tried $('field_id).attr("Placeholder" "My Placeholder Text") using jQuery. Is there another method to do ...
0
votes
1answer
73 views

Woocommerce custom Plugin in wordpress [closed]

I want to access the ID of the product currently being displayed on the page. I am trying to do this in a separate custom plugin. I have tried global $post and global $product and get_the_ID() methods ...
0
votes
1answer
26 views

is pre_get_comments not working?

I am following through the "Professional Wordpress Plugin Development" book from WROX and I wanted to use this piece of code I found in it (I switched pre_get_posts with pre_get_comments) for my ...