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

Plugin admin menu: How to associate a hidden submenu page with a visible one?

My plugin has the following (simplified) admin page menu structure: // list of plugin items add_menu_page( 'My Plugin', 'My Plugin', 'edit_pages', 'my-plugin', ...
5
votes
2answers
1k views

Inserting Taxonomy Terms During a Plugin Activation?

I've been trying various ways of doing this. Basically, I've been trying to make it so that a plugin of mine populates the terms of a taxonomy only once during the plugin's activation. The term ...
0
votes
0answers
18 views

Dropdown pages in Settings API

I am working with theme option. There is dropdown option like this. 'memory' => array( 'type' => 'select', 'label' => __('Memory', 'fw'), ...
-1
votes
1answer
91 views

My wordpress website admin panel loads very slow, what can i do about that? [closed]

I am having a very slow load time for long time now, I read absolutely everything that I could about how to speed up my WordPress website hosted on azure, However there things that I am not capable to ...
0
votes
0answers
24 views

Show input value in front end

So I have this: function ntfr_text_field_1_render( ) { $options = get_option( 'ntfr_settings' ); ?> <input type='text' name='ntfr_settings[ntfr_text_field_1]' value='<?php ...
-1
votes
1answer
22 views

how can I make content from a plugin hidden when user is logged in? [duplicate]

I would like to make my social icons at the top of my page disappear when a user logs in to my website... what is the best way to go about this and can you give me all options that are possible ...
0
votes
0answers
21 views

How do I make a themeable jQuery plugin in Wordpress?

I'm writing a plugin in jQuery that I would like it to be customisable in wp-admin and I'm thinking of the best way to do it. For example, if I was writing a slider plugin and I wanted the the arrows ...
5
votes
1answer
107 views

WordPress and multithreading

I'm working on a plugin. I've created an API that reads and writes to a custom table in the DB. This API can be called potentially from N clients simultaneously (and it really happens). I noticed that ...
0
votes
1answer
31 views

Custom Post Type Audio Content

I want to make a custom post type of songs. Is there any way that i can provide an upload button to the admin to upload song as a post. So that it can be accessed via the_content(). I don't want to ...
0
votes
0answers
51 views

woocommerce: add custom field and visual composer

how do I add a custom field area to the single products dashboard and add visual composer support to it? Thanks.
0
votes
1answer
44 views

How to Get Current Custom Post Type Associated Taxonomy Term

I have a single.php file like below <?php get_header(); ?> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); echo '<div">'; ...
3
votes
2answers
92 views

Wordpress plugin from own server

I am developing a game, and I am planning that, I will have partners, so they can run a game like mine. For this, I developed a plugin, with some classes, and functions, to handle the game requests. ...
0
votes
1answer
1k views

How to change post status in hook?

I have similar problem as described in How to trap "Publish" button to check for meta box validation? Answer there is to hook into save_post and change post type. How can I do it? I try to ...
2
votes
3answers
5k views

What is the recommended way to create plugin administration forms?

I have seen and been using the following technique for adding php scripts to my plugin for handling custom forms in a wordpress plugin. from the quizzin plugin: $code_pages = ...
0
votes
0answers
27 views

Plugin Boilerplate - Where should I put helper functions?

I'm using the Wordpress Plugin Boilerplate and as it's OOP, I don't see where is the place for helper functions. If I am using this for say a review plugin - and I have a function that generates the ...
0
votes
1answer
18 views

Do rewrites added with add_rewrite_rule() persist after plugin deletion?

I am developing a Wordpress plugin and need to ad a rewrite url using add_rewrite_rule(). That does work. But what happens when my plugin is deleted? Does Wordpress cleanup the htaccess or do I need ...
0
votes
1answer
18 views

Getting Plugin to read all script files

In my pluging I created a file-1.php file which contains the plugin info and some functions for the plugin functionality, when the file was getting too long, I created a file-2.php file and put some ...
0
votes
1answer
63 views

Plugin Form Submitting to admin-ajax.php instead of admin-post.php

I am building a plugin which loads a form into a table cell when clicked. Here is the AJAX: public static function cp_libhours_ajax(){ ?> <script> ...
0
votes
1answer
49 views

Difficult to create unique titles and meta description?

I have just made my first theme for WordPress and I have been searching for information or some kind of tutorial, about how to create some sort of very simple plugin to handle unique titles and meta ...
1
vote
1answer
27 views

Can we have an 'Update metadata' button in Image Gallery for all image instances?

{Note: This question is a followup of this one.} It is possible to implement the following: In WP go to Media | Library and select an image. The 'Attachment Details' window appear. We have there ...
0
votes
0answers
10 views

How can I pull in the current page's children and their children based on the main menu, not actual site structure?

I've been at this for a while now and am looking for some help. I'm trying to build tabs (and put links within those tabs) based on the structure of a site's main menu which does NOT in this case ...
0
votes
0answers
20 views

WP internationalization not loaded

I have problem with loading internationalization in my admin page. For generating .po and .mo files I use Poedit. My plugin structure is simple: ├───plugins │ └───radni │ └───radni.php │ ...
0
votes
1answer
15 views

Unable to access custom plugin backend

So, I just created a new plugin and i've added capabilities, a new role, linked them all together, etc.. etc.. but for some reason I'm unable to access my own backend. Error message is the generic ...
0
votes
0answers
32 views

Save data on custom table Wordpress

Here is my current code, <div class="wrap"> <div id="icon-tools" class="icon32"></div> <h2>Quote Manager</h2> <div class="aio-content"> <form method="post" ...
0
votes
0answers
9 views

how to add page to wp plugin

i'm creating a new plugin and i want to add a second page but i don't need it to show on the side dashboard. i want it to look like this: admin.php?page=pageX i have tried this: ...
1
vote
3answers
1k views

How to trap “Publish” button to check for meta box validation?

I'm trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the Publish button - except I can't find it. How do I ...
0
votes
1answer
175 views

Run function on plugin activation before plugin is loaded

I have two versions of the same plugin - one is a free version on WordPress.org and the other is a paid upgrade. Both versions use the same function names and so can't be activated at the same time. ...
0
votes
0answers
27 views

wp_mail links are dead

I am trying to make a pseudo-newsletter type plugin which will email that authors of certain posts. The email sends the contents of a textarea with some extra text added to the end of it. I've sent ...
1
vote
1answer
38 views

Including third party libraries in plugin [closed]

I am developing a wordpress plugin and would like to include third party libraries from Github. How do I include these a library so I can use the functions in my plugin?
2
votes
2answers
1k views

How to use filter hook 'post_updated_messages' in coherence with action hook 'save_post'

I am trying to send out e-mail, SMS and IM notifications to group members of this WordPress website, whenever a WordPress page in their user group has been published/updated. I figured using the ...
0
votes
2answers
1k views

Empty POST data on server on AJAX request using Angular $http

I use AngularJS to build an AJAX form which is then processed on a server running Wordpress. Server-side handler is simple: function rnr_contact_callback() { $name = $_POST['firstName'] . ' ' . ...
0
votes
0answers
31 views

Replacing Gallery Shortcode with Foundation's Clearing

Using wordpress 4.1 and Foundation 5, and attempting to replace the stock gallery shortcode with foundation's clearing. In debugging mode, I get a notice of: Strict Standards: ...
0
votes
0answers
51 views

update_user_meta not working

I'm trying to add additional profile pages and then allow users to submit custom profile data through the pages. I want this data to be unique to each user and only viewable by that user. The code is ...
0
votes
1answer
26 views

Plugin settings not saving and 404 is generated on submit

I am creating a WordPress using https://github.com/nadeem-khan/WordPress-Plugin-Template as a starter template. This is my settings class file named 'class-xyz.php': <?php if ...
3
votes
3answers
8k views

Category listing with thumbnail and description on home page

I really need a comprehensive solution to this, so I'm offering up almost a quarter of my rep in bounty :) I would like to have a plugin that creates a custom category listing on my home page. To do ...
0
votes
0answers
48 views

Override A Plugin Variable And Function Via Functions.php

Is it possible to override a variable in a plugin function without altering the plugin? The closest thread I found to answer this problem is this one : Pass A Value From Outside To A Plugin Variable ...
0
votes
1answer
20 views

User subscription emails not firing from custom plugin

I have a custom plugin that should fire off emails based on a saved search function. The function seems to work when I enter one specific email but not when looping through profiles. Here is the ...
0
votes
1answer
16 views

Plugin Development - Multilangual - Different pages

I'm currently developing a User Registration plugin, since I couldn't find any free that are properly translated I decided to create my own. The Plugin is mainly completed... My PO and MO files are ...
0
votes
1answer
30 views

How to use get_pages( ) correctly with 'child_of' to replace page with child page

I'm struggling to get the results I want here. After a couple hours of googling, I've decided to ask you all for help. I'm trying to look at children of the current (queried) page, and if the page ...
0
votes
0answers
78 views

How to show portfolio items from modal popup on portfolio plugin

When I have used this modal controller in while loop, the modal pop-up is working with framework metabox. The problem is when I reload my portfolio page, where all portfolio images are showing, the ...
0
votes
0answers
38 views

Creating an archive page listing external data

I am working on a plugin that displays external data, within WordPress. I am attempting to create two pages. A listing/archive page, and a detail page. Example: /cars/ List all cars /cars/abc/ ...
0
votes
0answers
22 views

AutoPopulate Excerpt with content minus shortcode

I am writing a plugin to auto-populate excerpt field on Woothemes Sensei Lesson CPT with text inside shortcodes placed on the content area. Well, it is working fine for lessons CPT, but...on posts ...
5
votes
2answers
444 views

Strategies to implement selective loading of plugins

I'm trying to figure out some kind of mechanism to load plugins on demand, depending on the page url, to improve performance. My primary concern is that I have some admin-ajax.php calls that are ...
0
votes
3answers
81 views

Displaying External Data - Not Posts

I am creating a plugin that needs to display external data, not wordpress posts. What I have done: registered rewrites so wp recognizes my archive/single URLs, hooked into template_include to direct ...
0
votes
1answer
35 views

Automating the process of shortcode generation in a plugin - how is it done?

Automatic short code generation is a technique that I see many plugin authors use but unfortunately, I have yet to come across a tutorial that details this subject so I am hoping that someone in this ...
4
votes
2answers
476 views

Custom pages with plugin

I'm developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it, ...
0
votes
1answer
33 views

How do I include drag-and-drop in a plugin?

I want to build a WordPress plugin that will allow users to add and delete fields from a custom post type. I want them to be able to do this with drag-and-drop, just like they add widgets to a ...
17
votes
5answers
5k views

Is there any plugin development framework

Since I am new to wordpress plugin development I have been examining internal structure of many plugin's and I could find most of them doesnt fit any pattern and understanding how they works is pretty ...
5
votes
4answers
4k views

Passing arguments to a admin menu page callback?

Situation: I'm working on a plugin and I'm developing it as a class, everything worked fine until I run into this situation. I wanted to make things a bit cleaner and tried this.. class MyPlugin { ...
-1
votes
2answers
35 views

How to Prove Ownership of plugin [closed]

So I'm considering writing wordpress plugins to sell. Apparently distributing these type of plugins requires you to hand over the source code to the client. What would happen if one of the clients ...