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)

2
votes
2answers
112 views

Is it a good idea to edit an already existing plugin to add more functionality?

I need to add a relatively small bit of functionality to a Wordpress plugin and I have the option to either edit the plugin directly, or scrap the plugin completely and repurpose PHP code from another ...
0
votes
0answers
14 views

How to add jquery to my custom post type wp plugin

I want to include a jquery to my wordpress custom post type plugin which i have created. i have two doubt,,, the jquery script will work only on widget options (i.e) Sidebar. So when i use the ...
0
votes
1answer
14 views

Include add_post_meta in a plugin

I am trying to call add_post_meta() from a plugin I have created. The plugin acts as a payment gateway for WooCommerce. This all works fine however I need to fire off the add_post_meta() at the end ...
1
vote
0answers
16 views

How to set a custom path, for ajax image upload folder in admin?

I am coding my first Wordpress plugin that handles some data for a custom (shop-like) post type. It also has an image uploader within a metabox, where you simply drag in your images and it ...
0
votes
1answer
22 views

Generate activation url

For my registration I am using custom registration form.It works fine.It sends email with username and password. What I am looking I want to generate url so that when user click it automatically ...
0
votes
1answer
37 views

What exactly do this function declared into functions.php file of a WP theme?

someone can help me to understand what exactly do this function declared into the functions.php file of a theme? function exclude_featured_tag( $query ) { if ( $query->is_home() && ...
0
votes
0answers
13 views

Some doubts about the WP development IDE, how to obtain the IDE code assistance? [duplicate]

I am pretty new in WordPress theme\plugin development (I came from Java and C#) and I have the following doubt about the IDE and how to correctly handle the WordPress development process. My main ...
0
votes
0answers
19 views

Want To create new dashboard for users [on hold]

I am new in WordPress , i am working on a website where i want two options for visitors 1 register, 2 log in , where user can register and after log in he should redirect to a separate user dashboard ...
-1
votes
0answers
15 views

if this kind of project possible in wordpress? [on hold]

i have some questions. i am planning to create my own “management crm”. so i looking for plugin that can give me the next options to build it in the way i want and need to my business. this project ...
0
votes
1answer
26 views

How do I debug an error that a plugin is causing?

I'm having an issue debugging why the plugin I'm creating keeps displaying the error You need to upgrade your database as soon as possible.... The work I've done so far has been on a remote dev site, ...
0
votes
1answer
24 views

save_post not called in plugin / custom field still saving overwriting metaboxes

I have a plugin that writes metaboxes to certain pages. It writes the metaboxes fine and everything works as should...until I save. The save_post is not getting called, and I can't figure out why. ...
0
votes
1answer
15 views

Update post meta not working on wp_postmeta

I am trying to update post meta values but it does't work. Only function that is working is get_post_meta and add_post_meta but Update wont work at all. Also I tried to change the values using ...
0
votes
1answer
21 views

How do I alter the position of a Custom Post Type menu item within my plugin admin menu?

I'm writing a plugin (for the first time, so bear with me!) which includes a custom post type; 'Programmes'. In the admin menu, I've set up a new menu group for the plugin, and I have the 'Programmes' ...
0
votes
0answers
29 views

remove_filter right way

What is the right way to remove filter in condition? method 1 public function update_loop($query) { global $wp; if(!$query->is_main_query() || $query->is_admin) return; ...
0
votes
2answers
33 views

How to cancel Wordpress' action/filter when using OOP with anonymous callback

Most of the wordpress plugins I found is functions based, for example, the offical akismet plugin function akismet_init() { global $wpcom_api_key, $akismet_api_host, $akismet_api_port; // ...
-2
votes
0answers
15 views

Message wall for users in Wordpress [closed]

I would like to build my first plugin for wordpress. It will be a facebook style messsage wall. I would like to collect ideas from experts about it. How can I store the messages for the users, user ...
0
votes
1answer
20 views

Don't load the theme for a page FROM a plugin EDITED

I'm developing a pseudo admin area for my client and they don't want the theme overlaid on it, rather have their admin area take up 100% of the page. Normally I would add if (!is_page($id)) and be ...
0
votes
1answer
20 views

Calling dynamic_sidebar in plugin gives error

I am trying to call dynamic_sidebar from a plugin page. Whenever I do so, it returns a white page! Any idea why? What I am trying to do is to save the total sidebar output in a transient. I can get ...
0
votes
1answer
15 views

Why tinyMCE.editors doesnt work on tinyMCE

<?php /* Plugin Name: Taggr Plugin URI: http://example.com/wordpress-plugins/my-plugin Description: Premium plugin for image and photo tagging Version: 1.0 Author: Tee Kai Yang Author URI: ...
0
votes
0answers
56 views

Dynamic css for a widget plugin

I have a plugin that creates a widget to show latest posts and I would like to add a dynamic css file to style the post title without using inline styles. So for example i have public function ...
0
votes
1answer
27 views

Mediaelement.js feature doesn't work

I am trying to add new feature to mediaelement.js. Here's one example http://mediaelementjs.com/examples/?name=loop Another example which I am trying to implement now is this- ...
0
votes
0answers
29 views

Custom query not working in plugin admin page

I'm not sure what I am doing wrong, but I cannot use get_post, get_posts or WP_Query in my plugin admin page. I can use get_user_meta, and get_userdata, so I'm a bit confused as to why I cannot use ...
0
votes
2answers
35 views

How to add chunk of php, html, and sql code to variable an append to $content

I am creating a plugin (my first) which allows the site admin to display the most used post tags over the last X number of days. This plugin is an evolution of the WP Development question here - ...
0
votes
1answer
24 views

Adding an external stylesheet to a plugin

I apologize in advance if this question has been asked before. I've created a plugin, and I'm trying to add an external stylesheet, but it's not working. Am I suppose to compress the plugin file and ...
0
votes
0answers
24 views

edit-tags.php in custom admin menu

For the plugin I'm building I have added a submenu as a child to a custom main menu item in admin. The submenu page is an edit-tags.php page. This shows up as intended under the main menu item. When ...
0
votes
1answer
23 views

Second select list values are not saved after clicking update

I have a select list in a metabox which value is saved successfully after clicking "Update" when editing post. Of course, the values are custom taxonomies. But i don't know how to add another select ...
0
votes
1answer
16 views

Save data of select list after clicking save

I already have a meta box in the edit post that has a select list with custom taxonomies. But after i save the post the select list returns it value to none, so i don't know how to save the selected ...
1
vote
1answer
40 views

Trying to code a simple plugin, infinite loop?

I am at a standstill. I have checked over my code so many times. The code just shows up about 4 or 5 times on the Settings --> Plugin page and then breaks the browser. I am just trying to make a text ...
0
votes
1answer
24 views

Removed jQuery script from header.php , any problems?

To avoid multiple jQuery calling from my theme and plugins, I removed <script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ...
1
vote
1answer
19 views

Howto check version of another plugin and then add a submenu page to it

i'm writing a plugin which requires another plugin. So i have to check first if the other plugin exists in a correct version. If yes i want to add a submenu page to the plugin page but here my code ...
0
votes
1answer
32 views

How to prevent plugins from loading jQuery

I recently downloaded a free plugin from wordpress.I want to remove the plugin from loading jQuery because you experts know that it is already loading from wordpress header.php file. The plugin is ...
0
votes
0answers
15 views

Hierarchy of Subcategories on Permalink

I'm new to Wordpress. My current permalink is set to /%category%/%postname%/ and a "." (dot) in the Category base. My categorys ID are bigger than the subcats IDs. So the URL looks like this: ...
0
votes
0answers
12 views

How to include WP_Widget from another file in main plugin file?

I tried to use the code bellow in my main file: define( 'MYPLUGINNAME_PATH', plugin_dir_path(__FILE__) ); include MYPLUGINNAME_PATH . 'class/class-widget.php'; Then I have a file ...
0
votes
0answers
16 views

wp_next_scheduled() with jQuery Countdown

I'm working with the jQuery Countdown timer for the first time and I wanted to integrate it into my Wordpress site to display the time until the next scheduled cron event. When the countdown has ...
2
votes
1answer
59 views

Get list of scripts / styles and show file which enqueued them

I want to show what scripts and styles have loaded on a page and which plugin / theme / file has added them to the page. We can show all scripts and styles using: <?php global ...
0
votes
2answers
35 views

Jquery was not found on this server

I have two pages, events.php from plugin1 index.php from plugin2. in events.php. I am including jquery for ajax loading <script ...
0
votes
2answers
17 views

How can I modify admin bar only if my plugin is loaded

If I want to always change the admin toolbar at the top of the page it's easy. add_action('admin_bar_menu', 'add_toolbar_items', 100); function add_toolbar_items($admin_bar){ ...
0
votes
1answer
64 views

Ajax +wordpress onClick link redirect to new page and create html content

i have two pages in my wordpress plugin index.php charts.php in index.php i have some content and some link.. <a onclick="show_trend()" >Trend</a> while clicking this link ,i have ...
0
votes
1answer
27 views

See output of a sql query while plugin installation in wordpress

Doing wordpress plugin development, I am creating a table (while installing the plugin) with the following string: $sql = "CREATE TABLE (query skipped)..."; /*someting*/ For example: I have this ...
0
votes
0answers
28 views

How do I add my own custom php page?

I'm making a plugin and I need to include my own public custom page in it. The user must not be able to edit this page and that's why I don't want this to be a regular WordPress post of type 'page' ...
1
vote
1answer
41 views

Wordpress metabox file upload in custom post [duplicate]

I'm relatively new to wordpres development and am stuck at this issue. I have created a custom post type which shows up in the admin menu. I need a metabox in it with a file upload field. The metabox ...
1
vote
1answer
32 views

Plugin options not being saved or created

Having a lot of trouble with this config page. I have followed the documentation (which was sparse) and done a bit of searching for help. My problem is simple, my config options aren't being created ...
2
votes
1answer
55 views

How to prevent loading of all plugin's resources?

Wordpress is loading all client resources of all plugins, not just the plugin of interest. It may make sense to load jqery globally but it makes no sense to load all other plugin's Javascript in a ...
0
votes
0answers
8 views

wp_parse_args not insert it to options

wp_parse_args not inserting default value to options. But its printing results. $options = get_option('my_options'); $defaults = array ( 'logo' => 'http://domain.com/logo.png', ...
1
vote
1answer
28 views

get_query_var not works

I would like to $_GET a parameter in the URL, for that I read I have to use query_vars. First I added the following lines to functions.php: function add_query_vars_filter( $vars ){ $vars[] = ...
0
votes
1answer
32 views

How to work with AJAX and Wordpress?

I'm working on my first plugin. I would like to add a follow button for the posts, so the logged in users can follow the authors. I placed the following lines into functions.php function ...
0
votes
1answer
22 views

How to add an admin notice upon post save/update

I have a post type the uses post_save to take the address from the post-meta and retrieve the lat/lng coordinates from the Google API. I need a way of notifying the user if there was an issue with ...
0
votes
1answer
38 views

Checking for existence of a page by title?

I'm currently working on a plugin, and I essentially want to check if a certain page has been created. Essentially, I want to do something like this: if (file_exists($file)) { $exists = ...
0
votes
0answers
7 views

Tabbed navigation for plugin options using same row in database for all?

I'm trying to use WordPress' native tabbed navigation on my plugin's options page, but I'm having trouble. I've managed to get the options to display, though it displays every plugin option on every ...
0
votes
1answer
30 views

Update own Plugin Repository on Multisite

i have a curios problem what i cannot fix. On the plugin mainfile i defined: add_filter('pre_set_site_transient_update_plugins', array('moreads_update','check_4_updates')); add_filter('plugins_api', ...