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)

-1
votes
1answer
158 views

Change the name of an installed plugin

I have installed a third-party plugin for my wordpress site. What I want is to rename that plugin so that it matches my purpose for installing it. Is it possible? The plugin I'm trying to modify is ...
0
votes
1answer
43 views

Getting error “The package could not be installed. PCLZIP_ERR_BAD_FORMAT ”

i am newbie in wordpress. i have created my own plugin and it's working fine for me... now i have created rar/zip file my plugin folder... i am uploading my plugin .rar file in my another wordpress ...
1
vote
1answer
59 views

Enqueue Wordpress plugin scripts below all other JS

I am developing a simple Wordpress app but I am having an issue as all of the plugin scripts are rendered before those which are enqueued in my functions.php. Here is a sample section of the ...
0
votes
1answer
34 views

Admin-ajax.php is dying “0” without processing function

I am trying to learn how to process AJAX requests in Wordpress the correct way. To do this I am adapting this tutorial to create a super simple AJAX request to place the ID of a post (from a link) ...
0
votes
1answer
21 views

how to call uninstall.php

i am newbie in wordpress... i have created my plugin... now i am creating uninstall.php file for uninstall my plugin... this is my code of uninstall.php if(!defined('WP_UNINSTALL_PLUGIN')) exit ...
0
votes
1answer
23 views

How to get Wordpress Adminmenu items?

I want to get all the menu items in the admin menu in the backend. To be clear, the menu which is generated from /wp-admin/menu-header.php. How can I do this, I see that plugins for instance ...
0
votes
0answers
83 views

Woocommerce shipping plugin: create checkout error based on validation

I'm writing a shipping plugin for Wordpress and I need the ability to display an error to the user and disable the checkout process based on the results of custom validation. I've been using the ...
0
votes
0answers
31 views

how to get next record from database when wordpress schedule hook runs?

favorite I am working on plugin which will work automatically via wordpress schedule hooks. But to do that I need a single record from database and process it and next schedule run, I want to get ...
0
votes
0answers
34 views

How to get Gallery ID in nextgen template

I want to retrieve gallery description in file ...\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_basic_gallery\templates\thumbnails but it is must to know gallery ...
1
vote
0answers
38 views

Create a custom capability to allow an 'Editor' to edit only 'Subscriber' users

I want to create a new "Moderator" role (in between Administrator and Editor), that can edit only "Subscriber" type user accounts. I can create the role and add existing wp capabilities, but I don't ...
0
votes
0answers
56 views

Pre-selecting category from drop-down list or convertingdrop down list to links

I'm using this plugin called buddypress links and in it's link directory page the user can sort through the links by category from a drop down list(screenshot).What I need is seperate links for each ...
1
vote
1answer
78 views

Best practice for show data to one specific user?

I'm attempting to build a locked page on wordpress (through a plugin) that shows differant data, depending on who signs-in. Essentially it has three screens, as follows: If you sign-in as the admin ...
0
votes
0answers
60 views

How to show gallery description with nextgen 2.0.33

I have a gallery that contain description of gallery. I want to show it in my page but i don't know how to get description for showing my page. What should i do? Edit I found old answer in -> ...
4
votes
1answer
83 views

Cron firing my function everytime wp-admin is visited

This is a MU-plugin I'm developing, and I want it to run hourly. Unfortunately, it's running every time I visit any site's wp-admin page. I've used the Debug Bar plugin with the Cron plugin, and it ...
0
votes
0answers
155 views

How to save wp-editor content in options DB for plugin option?

I use options table to save my plugin options and show the saved data in the input field using get_option() from the options. For example register_setting('myplugin','example'); <input ...
0
votes
1answer
57 views

Passing values between enclosing and enclosed shortcodes

Is there a way to pass data between the enclosing and enclosed shortcodes? For example, I would like to do something like: [boxes per_row=4] [box]foo[/box] [box]bar[/box] [box]baz[/box] ...
0
votes
2answers
170 views

How do I programatically insert a new menu item?

I'm developing a plugin and I want to insert menu items programmatically. When my theme creates a menu, it uses this call: wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => ...
0
votes
2answers
151 views

How to check if a stylesheet is already loaded?

I was wondering how to check if a css file is already loaded. For example, I have in my theme Font Awesome font-awesome.min.css and I have a plugin that make use of Font Awesome too. So, I ended up ...
0
votes
1answer
25 views

How to create and use Custom hooks

I am newbie in wordpress. I have just created contact us plugin for my own project. In my plugin I have used many functions you can take a look of my code. I want to make this plugin based on custom ...
0
votes
0answers
51 views

Discount Code in Easy Digital Download

I doing the custom extension for easy digital download. Following is the little confuse for me. For Example Here is the discount code of price $100 and the product price is $50 if i use the discount ...
0
votes
2answers
25 views

how specify a directory to file when downloading it

I use this code to download a file from remote server to mine and the file is created and saved but in the home directory and i want it in the plugin directory $url ='*.dat'; // Use wp_remote_get to ...
1
vote
1answer
33 views

Is there a way to verified if an add_filter is already applied?

I have in my theme this filter: add_filter('widget_text', 'do_shortcode'); Now I'm developing a plugin where I have that same filter. I would like to know if is there a conditional that I can check ...
0
votes
1answer
26 views

Every time I de-activate a custom plugin, the site encounters a critical error

I have a custom plugin that I no longer use. I was looking to de-activate it from my site (and, subsequently, my network) but every time I attempt to, I get this error: Please activate the {plugin ...
0
votes
2answers
155 views

SESSION in WordPress Plugin Development

I wondering the session was disable in wordpress. I try to find some information on using session variables in the wordpress. I tried the following method to implement session variables in the ...
0
votes
1answer
98 views

Storing values in Post Meta vs new tables

I want to store list of user IDs in the post meta who have rated a post . So, for each post I will need to check the post meta to see if the user id exists in it or not. So my question is that, is it ...
0
votes
1answer
26 views

Cant' Grab WordPress Built-in Posts Through Loop

Using WordPress 3.7.1 I am trying to display all Regular Post on my created page lest say TestPage. Here are the steps I took to do this: 1- Generate a Custom Page Template called:Test Page and ...
0
votes
1answer
30 views

Display my plugins content based on a pages post_id

I have created a plugin that has the frontend content in a file named showmap.php, I currently have a shortcode that includes the contents of showmap.php on the page the shortcode is placed. I ...
0
votes
1answer
85 views

Creating option to allow user to select the page my plugin content will display on

I have an options page for my plugin, but cannot seem to figure out how to create an option to allow admins to select a page that will display my plugins content. Does anyone have an example of how ...
0
votes
0answers
48 views

How to detect shortcode usage, submit a form from widget to that page?

I've created a plugin and now want to create a widget containing a form that will submit to the page where my plugin shortcode is embedded from any wordpress page on the front end. I assume that ...
0
votes
1answer
41 views

Adding a custom button to WordPress Add Post (and Edit Post too) screen, that can save the post

I am writing a plugin that hides the publish box from authors, so that I can have them click on a button in a custom meta box I created, to save their post. (This is not the sole purpose of the ...
0
votes
0answers
89 views

How to Display Custom Post Type's Gallery (images ) in Through WP_Query

I am trying to load an Image Slider images from a Custom Post Type image Gallery Feature. For example let say I have an Custom Post Type called banner which I can load images to it's Gallery and I ...
0
votes
0answers
29 views

Default Paypal Support in Custom Product of Easy Digital Download

I created the product as purchasing different discount code with different denominations as $5 or $10 or $100 . . . I did these with my own supporting gateway as paypal. But I want to use the default ...
0
votes
0answers
4 views

Updating existing table in wordpress plugin [duplicate]

How can I update the table structure of the wordpress plugin on reactivation of the plugin. what is the code for change the structure of the existing table in my plugin. ?
-1
votes
1answer
86 views

How to create a page template using custom plugin

I am building a plugin. I just want to create page template whenever i install plugin. Page template like full-width template. I have used codes after searching but not able to get success. So please ...
1
vote
2answers
233 views

How to use relative path with my plugins folders?

Hi i tried for picking all images in a folder so that what ever images user puts in a specified folder inside my plugin i can take and use it in plugin. I tried the following php functions to pick ...
0
votes
0answers
21 views

Are there any good ways to know the plugin I developed for WordPress is used by which websites? [duplicate]

Normally, contributors make a plugin for people to download. People download and install to use. That's it. If I can learn the types of websites that download and use my plugin, I would have a ...
1
vote
1answer
46 views

A better way to include localized labels in Wordpress plugins

is there a better way to include labels to be localized in Wordpress plugins and themes? My current setup involves calling the method below to get the labels: public function plug_get_labels(){ ...
0
votes
1answer
724 views

WooCommerce custom payment gateway

I'm trying to write a WooCommerce plugin for a client's website that they're going to be selling subscriptions to customers. I've been exploring my options and the best one I can come up with is to ...
0
votes
3answers
64 views

How to Register/Link to .js Files in WordPress Dynamicaly in Header.php

Can you please let me know how I can dynamically register/link to my js files in wordpress? I have two js files as below code but I do not know how to map to them uring the bloginfo() as it is taking ...
0
votes
0answers
49 views

Use of unicode postname when using custom generate_rewrite_rules

I have a custom rewrite rules like.. add_action('generate_rewrite_rules', function ($wp_rewrite) { $wp_rewrite->rules = array('products/(.+?)$' => ...
0
votes
4answers
97 views

How to include code into functions.php file via a plugin

I have a lot of custom code in my functions.php file, what I would like to do is move all of this into a plugin for example myplugin-functions.php and then include the file into the themes ...
2
votes
4answers
107 views

How to avoid plugin name conflicts from the upgrade notifier?

I've wrapped a quick hack as a plugin to add Google Analytics to my site. Named it "Google Analytics" and, sure enough, WP offered me to upgrade my v0.1 plugin to some random plugin from the plugin ...
1
vote
2answers
155 views

global $current_user not current user

I believe I have a misunderstanding of what the global variable $current_user is exactly. I'm attempting to display the current user's email and name on a page using add_filter('the_content', ...
0
votes
1answer
43 views

Declare plugin dependency [duplicate]

I have written a custom plugin that use a specific 3rd party plugin code, so I want to declare my plugin depends on this 3rd party plugin, is it possible? What would be normal approach to this issue?
1
vote
1answer
83 views

Check Paypal Purchase is Success or Not in Easy Digital Download Plugin

I trying to do something for every purchase of corresponding product in easy digital download. Let say i need to add the auto random discount code for every purchase made in easy digital download. I ...
-1
votes
1answer
36 views

Upload Image to desired directory through plugin

I am creating a plugin that will allow the admin to manually input users. One of the options is including an image. I am unable to get the image to transfer from the computer into the directory. Here ...
0
votes
1answer
150 views

Why is PHP Cookie via plugin only set when logged in as Admin and not regular users? and other questions

At first I thought it was a browser issue, but it looks like my code only sets a cookie if the user is logged in the administrator. If you are not logged into the Administrator account then it does ...
0
votes
1answer
63 views

How to add more than 1 user role to sub-menu pages

I create a plugin with 6 submenu pages. I need 4 of them to be accessible by administrator and a custom user role i created say 'coach' user. Then the 2 of them to be accessible by administrator and ...
0
votes
0answers
66 views

Create and update Custom Cookie based on multiple GET and POST Values for first time visitors?

I am not exactly sure the most efficient way to write this code. I collect custom data in my forms and also in my url via get such as: Name utm_campaign URL Referrer ID Among many more. Do I ...
1
vote
0answers
83 views

WordPress deployment strategy: Dealing with dependencies [closed]

The main question is: How do you deploy your WordPress sites, taking into account dependency management and database migrations? Details I've been reading around this issue both on Stack Exchange ...