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
10 views

Add custom filter to register data in array

I would like to register a multi arry of data in a plugin and allows any developper to add new value to the array. This multi array contains a name, and different value like this: class ...
0
votes
0answers
11 views

How to show a Progress Bar when a plugin is doing some processing in Wordpress

I'am new to WordPress plugin development and I'am developing a plugin which sends messages to all subscribed users when a new post is published. Plugin is complete and its sending messages to all ...
0
votes
0answers
6 views

API Functions to Register and Show WordPress List Tables

I am developing my own plugin and I am trying to figure out how to add WordPress List Tables to my admin page. I am aware I can write the the HTML myself but if there is an API method this is the most ...
0
votes
1answer
21 views

Issue with wp_handle_upload

I am trying to upload a zip file from Setting Page. I have designed a setting page and in that I have a file upload functionality. I am using setting API to do this. My issue is: I know that maximum ...
0
votes
1answer
14 views

Types Plugin - Display options(select) in template

I have created a custom "select field" in admin panel using types plugin. Is it possible to get the values and use it somewhere outside the plugin(in theme or in another plugin)? I like to update the ...
0
votes
0answers
13 views

Create Database Tables on Plugin Activation hook

My function which have code for table creation function hotel_install() { $path=ABSPATH . 'wp-config.php'; require_once ($path); global $wpdb; $charset_collate = ...
0
votes
0answers
8 views

How To Display Admin Toolbar On Custom Template

I am trying to get the admin toolbar to display on a custom page. I am using a custom php file for this. The basic structure of the page is like this and this will display the basic structure of my ...
0
votes
0answers
13 views

Ajax Vote Plugin e.preventDefault not working

I tried to build a plugin with which i can let users vote for articles so i can track kind of 'likes'. The Ajax works fine and I use a link as a trigger. Somehow every time I click on the link (which ...
0
votes
0answers
11 views

Practices to Avoid Plugin & Theme Conflicts

I am developing a WordPress Plugin and it includes the javascript library Require.js. This is causing a conflict with my theme. How can I avoid my plugin javascript affecting other plugins and ...
1
vote
1answer
15 views

admin_notices hook show message all admin pages after plugin activate

I am working on a plugin and in plugin i use admin_notices hook for showing my custom message. When a user activate plugin the message show blew the plugin activate successfully, but my message shows ...
0
votes
1answer
18 views

Let user override plugin CSS

I'm writing a plugin, which has a certain style. However, that style won't suit every site. therefore, I would like to let the site admin override the plugin CSS if they want. How would I go about ...
0
votes
0answers
10 views

Custom Front End Profile not saving custom contact info

I have a plugin I've created for specific types of user functions. This plugin adds additional custom fields to the user profile and a front end profile page (subscribers do not see the admin bar and ...
1
vote
1answer
19 views

Get all of user's custom post types in WP Admin for plugin

I am making a WordPress plugin and hit a rough point. I'm trying to make it so a user can select from all their post types, including custom post types. The code I have below shows the post, page, and ...
0
votes
0answers
13 views

Inactive Plugin Files

One of my plugins have some files that are inactive. I did some googling and found out that this is caused by editing files while the plugin is still active. OOPS, guilty. I then deactivated and ...
0
votes
1answer
15 views

Create dedicated page with custom template showing custom data

I am trying to finish my first WordPress plugin. I've managed to create the admin part, where I load a lot of information into custom tables I've created on the same database as the WP installation, ...
1
vote
1answer
44 views

How to make Http Request to a php file present in plugin directory of wordpress

I'am new to wordpress plugin development and I'am developing a plugin (say myplugin) and I'am stuck in following problem. I had kept this plugin in mywebsite/wp-content/plugin/myplugin Inside ...
0
votes
1answer
10 views

How can I allow the user to press enter without creating a new element in the editor?

I wrote a tinymce button to place a special div on my editor (I didn't use the format dropdown because the client was unsure of it). When the user presses enter inside the div it creates another ...
0
votes
1answer
30 views

WooCommerce - Create Products Programatically

I'm writing a plugin that will automatically import products via JSON API. I need to programatically create/update products. I did a research and it seems everyone is using wp_insert_post() and ...
0
votes
1answer
16 views

Allow Facebook to preview posts before published

I want to allow Facebook (user agent facebookexternalhit) to access scheduled posts before they're published, so it can access meta information in order to schedule a status. Currently I temporarily ...
0
votes
0answers
27 views

How to create a new database table whenever user changes options

I'am new to wordpress plugin development and I'am stuck in developing menu for my plugin. By going through documentation and many sites i created following menu. But i want to create a new table in ...
1
vote
0answers
16 views

Rewrite rule for page with plugin shortcode

I created a plugin to display a list of real estate properties on a page. The list is embedded into a custom page as a shortcode: [real_estate_list status="1"] The list is loaded from an external ...
0
votes
0answers
12 views

How to have an option updated (and translated) in the admin while using WPML?

I'm using WPML on our site and I'm currently building a plugin to hold translatable labels for this particular client. These options are being held in the wp_options table by adding an option called ...
0
votes
0answers
18 views

How To Sort and Filter Admin Custom Taxonomy Columns

I have a custom post-type with associated custom-taxonomies – how can I make these custom taxonomies sortable in the custom post-types admin/list view header (similar to how dates is sortable)? ...
0
votes
0answers
10 views

While sending mail from contact form 7 in my inbox name and email id are not displaying [on hold]

While sending mail from contact form 7 in my inbox name and email id are not displaying Instead of name it is showing [your-name] and [your-email] as written in mail setting in cotact form 7 while ...
0
votes
1answer
20 views

Create a custom page template inside my wordpress plugin

I'm developing a Wordpress plugin and I want to create a file to where I want to redirect the user to show some information. I know that a perfect solution for this is using Wordpress custom pages. ...
1
vote
0answers
17 views

Redirect on Empty Query Var [duplicate]

I have a plugin with two rewrite rules: public static function cp_libdatabases_add_rewrites(){ $options = get_option( 'libdatabases_plugin_options' ); $staff_url = $options['staff_url']; ...
0
votes
0answers
14 views

How to sanitize an input array to save in options?

I want to santize a category IDs list before updating it, how this should be done. This is how I'm doing: $categories = get_categories(array('hide_empty'=> 0)); foreach($categories as $category) { ...
-1
votes
1answer
17 views

woocommerce product insert programmitically

I have just implement the woo-commerce implementation pragmatically. But i need to check before insertion product is already exist or not. How can i check product is exist or not.
0
votes
0answers
14 views

How to use an existing localization in a new plugin?

Is there any possibility to use an existing localization? For example: My plugin adds ,,First name'' field to the registration form: <p> <label for="wp_first_name"><?php _e('First ...
-1
votes
0answers
22 views

Creating a blank wp_head() action

I'm creating a plugin and one of the screens of the plugin needs to be a completely fresh template page. I've got it all hooked up and it's working fine but the issue is that there are certain plugins ...
0
votes
0answers
18 views

Add submenu for users [closed]

I want add submenu like "Edit", "Delete", ... below username. How to add ?
0
votes
0answers
10 views

How to change the mail sent or messgae sent failed messge dynamically in contact form 7 [on hold]

I am Using contact form 7 and want to show the messsgae after the form submission according to situation in the position of "thanks you mail has been sent successfully." How can i do this with latest ...
0
votes
0answers
25 views

Designing custom templates and managing conent

I am web developer with little wordpress experience. What I am trying to do is develop and style a website to my liking using pure html and css and then use wordpress to allow the end users to edit ...
0
votes
0answers
16 views

How to change the responce messgae in contact form 7 [closed]

I am using contact form 7 and i want to send a verification code to mobile. i have all set only one thing i want to resolve that if the one time password will not sent to the mobile (I am using curl ...
1
vote
2answers
109 views
+50

Plugin not saving values when placed in a folder within /wp-content/plugins

Ive got the following code for a WordPRess plugin that essentially add two custom inputs on each page/post edit screen. The values are then saved and output in the header of the frontend page. The ...
0
votes
0answers
25 views

add_action priority and taxonomy used in plugin

I try to register my taxonomy in my plugin and use it after. So far I have done: function custom_taxonomy() { $labels = array( ... ); $args = array( ... ); ...
0
votes
1answer
20 views

How can I see a varibles value when my plugin runs?

I am trying to make a plugin that redirects a user based on how they fill out a form. I am having trouble finding my problem I have narrowed it down to a small snippet that seems to work. function ...
0
votes
1answer
12 views

Upgrade private plugin without deleting files?

I have developed a private plugin, that is distributed and installed as a zip file. With this plugin users can upload files and the files will be stored inside the plugin’s directory. Now, I’ve got ...
1
vote
0answers
28 views

A custom post type in another post type

I can't seem to find an answer to the following question. English is not my native language so its sometimes hard to find the right words. I know how to build custom post types but i want to go a ...
0
votes
0answers
16 views

Plugin not initialising correctly

I have written a plugin that defines a custom post type, and a custom taxonomy. class Post_Type_Faq { const POST_TYPE = "faq"; private $_meta = array( 'open', ); /** * ...
1
vote
1answer
26 views

override pluggable.php functions

I just not only want to override a pluggable function (wp_new_user_notification) but I want to make sure that if any other plugin is overriding the same function, so my function , override that too or ...
-1
votes
1answer
30 views

WooCommerce Custom price formula [closed]

I am trying to create a custom formula for my woocommerce website. The site is a gold website and price of gold changes daily and there is a specific making charge for each item. What i am looking for ...
0
votes
0answers
21 views

add submenu page is not working

I have following code which is not working ie not adding any submenu in plugin: function acp_add_pages() { $dirs = array('acpcf'=>'C F','acpcj'=>'C J','acppj'=>'P N'); ...
0
votes
0answers
17 views

Backslashes being stripped from CSS

The title explains my problem. Upon saving CSS stylesheet in the "Appearance > Editor", single backslashes are being stripped out of the stylesheet. For example: content="\foo" becomes: ...
0
votes
1answer
16 views

How to save default values into an option and delete those upon actvation and deactivation in wordpress?

I ma using Settings API to save and delete values to and from the options I created! But it is not working. Can someone point out to me why it is not working? Here is the code: ...
0
votes
0answers
19 views

Custom theme and plugin updating

History: I'm working on a project for a client that involves building 27 unique websites that are built on wordpress. I say unique, because (for reasons that are not worth going into here) they ...
0
votes
0answers
24 views

After refresh settings field disappers

I'm working on a little plugin project to help gain a better understanding of wordpress development. So far i've been able to create dynamic text fields which a user can add themselves. Whatever the ...
0
votes
1answer
30 views

Am I correctly adding styles to plugin?

Today I noticed that two plugins (Opening Hours and Contact Form 7) had style conflicts. To fix the problem I decided to make it so that the stylesheet and js for Opening Hours would only be present ...
0
votes
0answers
11 views

get_header() not defined after using template_include

I'm trying to load a custom template as part of a plugin that creates a custom post type. The template_include filter seems to work, in that it loads the file I'm aiming for, but when the ...
0
votes
0answers
12 views

Creating a user 'add custom field' section

I'm trying to make this plugin where users can add a custom attribute for something i working on: So far what i've done is: which uses this code here: window.addEventListener("DOMContentLoaded", ...