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
1answer
30 views

Return value of $wpdb->update() query in plugin is wrong

The return value of my update query on an empty database table is wrong even though my query syntax seems to be right. The ELSE statement is executed when I run the query on an empty table but no ...
0
votes
1answer
21 views

Delete Query executing regardless of WHERE Clause condition

I have a delete query that runs when it should not, the WHERE clause condition requires that the query runs once every 600 seconds(ten minutes) since the last database update: $delete = $wpdb->...
1
vote
4answers
551 views

WP Cron doesn't save <iframe> or <object> in post body

I am using wp_cron to auto grab posts from a remote website and save them in my wp db. NOTICE! I am executing my code from my plugin, not from my template functions.php or somewhere else. I have my ...
0
votes
1answer
15 views

Wordpress Plugin Tool Tip Helpers

Sometimes when I install a new plugin, it gives me "tool tips" or "helper boxes" floating around the screen at strategic places helping the user to understand the plugin better or certain features. ...
-2
votes
2answers
75 views

Onclick open posts displayed in slider in a popup

In the attached image, the posts are displayed in a slider style. When I click on post in the slider, suppose CArd5, then the details should of that post eg: the thumbnail, excerpt etc should be ...
0
votes
1answer
41 views

How can I add the Post ID to Class Name in Jquery?

In the custom Wordpress theme archive page, I will have Sharing icons for all the posts. Below is the HTML for showing Sharing icon: <span id="post-share-<?php the_ID(); ?>" class="post-...
-2
votes
0answers
16 views

Showing null records in YITH WooCommerce Ajax Product Filter in woocommerce

Using YITH WooCommerce Ajax Product Filter free plugin for WooCommerce and I am trying to hide categories with empty records. I have tried editing plugin class file yith-wcan.php and some other php ...
0
votes
1answer
22 views

Page template compatibility with different themes

I'm back to WordPress development after a long time away from it, and I'm currently writing a plugin for a client that I might find some use to some others. One part of the plugin includes a page ...
6
votes
3answers
4k views

How can I find plugins' slug?

I'm wondering how can I find plugins' slug (slug = internal name used by WordPress to do plugin updates and to determine which plugins are currently active)? It is usually plugin's folder name but if ...
0
votes
1answer
498 views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
1
vote
0answers
28 views

WordPress plugin admin html being shown in Customizer iframe

I have a WordPress plugin that is focused soley on the admin side of things. I have a piece of HTML that is shown on all admin pages using the all_admin_notices hook. This worked very well, but I ...
3
votes
1answer
945 views

Error with Custom Admin Screen in iframe Thickbox

I have a plugin that adds a new admin screen in an iframe. I created a PHP file in my plugin, and I put a link with a class of Thickbox to that. Everything works just fine, but it produces a PHP error ...
0
votes
0answers
15 views

My plugin translation will only work partly

I've made a simple plugin that so far just creates a new role "Super Editor". I've made my translation files and added the load_plugin_textdomain-code within the plugins_loaded hook. function ...
1
vote
1answer
704 views

Display custom fields in frontside user profile

I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile. I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
0
votes
0answers
22 views

Generate and return a PDF file in functions.php

We have the following process flow: 1.) Users fills in a form (name and surname) 2.) Backend php scripts look for the record in local CSV files 3.) If record exists we would like to return the data ...
0
votes
0answers
86 views

Issue with iframe in TinyMCE

How does TinyMCE generate an iframe in the WordPress admin panel? Actually, I could not find out the starting point of the iframe which is generated by TinyMCE.
0
votes
1answer
31 views

Does WordPress have something like timer hook?

Are there some timer hooks to trigger event like this? add_action("one_min_timer", "my_handler"); function my_handler() { //checking something every 1 min }
1
vote
2answers
33 views

how to create and show sessions in word press?

I am new to word press but know all the required PHP skills. I am using a form to create session in one page and then accessing those sessions in another page. I have done this already without word ...
-2
votes
0answers
13 views

How to create a dashboard inside a WordPress Theme?

I am trying to create a custom theme. Can a custom wordpress theme handle the website content and at the same it has a different dashboard for special logged in users?
0
votes
3answers
2k views

How to append new form elements in “Add New” form of Users in Wordpress admin panel?

I'm developing a WordPress plugin and I want to append some extra form fields in add new form of Users section inside admin panel without editing core files. Can somebody help me in achieving this.
2
votes
2answers
4k views

Adding custom code into header.php using a plugin

I have a bunch of code that I tend to put into the header.php of every site I do which are specific to Internet Explorer. I was wondering if there was a way to insert code into a 'standard' header....
0
votes
0answers
29 views

How to create a global variable in a plugin to use in another plugin

I have a variable in a plugin that stores values ​​to her being fired, these values ​​are entered in the [post_title] but before that he a variable of $post_title_template name plugin and would like ...
0
votes
1answer
22 views

How to show metabox just in post.php in admin?

I want to show my metabox in post.php?action=edit not in post-new.php. How can I do that?
1
vote
0answers
40 views

Allow users to add / remove settings in plugin

I have created a plugin for a client of mine that I think could help a lot of people out there, so I'm in the process of "generalizing" it. Right now, I'm using the Settings API and textareas in ...
0
votes
0answers
32 views

wordpress admin-ajax returns 0, what I do wrong?

I have no clue why my callback function is not fired, thus I got 0 as a response of admin-ajax.php. My main plugin file looks like this: require_once( BLUECARROT_DIR . 'class_bluecarrot_user.php' ); ...
2
votes
2answers
773 views

Multiple files in a plugin

I'm trying to write a plugin with multiple files. I'm sure I did it before without a problem, but now I have the problem in the subject. In the main plugin file I have included a file name - ydp-...
1
vote
1answer
31 views

How to Display my HTML form in my Custom Plugin?

I'm creating my first Wordpress plugin. It's goal is to collect information from users by way of a custom HTML registration form. Essentially, when the user wants to sign up, I want this form to ...
-2
votes
1answer
34 views

What is nonce and how to use it with Ajax in WordPress? [duplicate]

I am trying to learn, how to use Ajax in WordPress with proper way. This is what I learned: Step 1: Create Ajax file and register it using wp_enqueue_script. function wpdocs_theme_name_scripts() { ...
-3
votes
0answers
14 views

Using namespaces without fatal error in PHP 5.2

I have decided to stop supporting PHP 5.2 for my WordPress plugin and want to use namespaces and other new syntax in my code. But at the same time I don't want it to result in a fatal error for ...
1
vote
0answers
27 views

Should a new Wordpress project use AJAX or the REST API plugin for a single page Taxonomy in 2016?

I have a client that would like a RESTful taxonomy filter implemented for a custom post type in their Wordpress site. The REST requirement is a new scope that was not previously mentioned. Initially ...
0
votes
1answer
3k views

How to access global variable $menu inside a class function

am puzzling why can't i access the global variable $menu inside a php class function class adminMenus { public function getWPdefaultmenus(){ global $menu; return $menu; } } using ...
0
votes
1answer
13 views

Same header/footer in Admin, across all network sites in multisite

I was kicking around a few ideas to accomplish this and came up with something a little strange...but it works. I'm creating a theme for Admin, for my multisite network. The users will be exposed to ...
0
votes
0answers
10 views

Plugin option page store draggable list in WP database

I have create a plugin. On the plugin option page I use a sortable list. I will save the order in a db table (example xxxtest). What's wrong. I see that ajax transmit (success alert) but nothing ...
0
votes
2answers
446 views

I am using multi image metabox plugin but I did get how to display the images in templete?

please help me... here is plugin url http://wordpress.org/plugins/multi-image-metabox/ I am using this plugin but after uploading images. I need to get those images on template... code to display ...
0
votes
1answer
34 views

Can I load the textdomain before a plugin is activated?

I'm writing a plugin and I've just added a check for a minimum PHP version. I tried to i18n the error message but it doesn't work. I translated every string in the plugin, everything works correctly ...
0
votes
1answer
35 views

Turn off Admin Bar (Toolbar) in backend - no easy way

I'm working on a theme for the back end Admin pages, this is for a custom web application built on WP. After studying admin-bar.php and the function is_admin_bar_showing() for a few minutes I decided ...
0
votes
1answer
23 views

Unable to pass variable to database

I'm trying to write a simple plugin which saves a backend form's inputs and selects to the db. Everything's fine until the script tries to pass the variables which store the field's values to the db. ...
-1
votes
0answers
9 views

Deleting one multidimensional array in options based on button click [on hold]

I am trying to delete a specific options based on an button click. They are all displaced through a php foreach loop echo. Currently I have the delete working like this if (isset ($_POST['plugin-...
0
votes
1answer
36 views

using a shortcode in a hyperlink

I am trying to use a shortcode inside of a hyperlink <a class="wpb_button_a" title="Reserve Now" href="/reservation/?unitrate=[print_csv position="5"]&amp;unitsize=5%20X%205&amp;...
1
vote
1answer
63 views

What is better way to use Bootstrap inside admin panel?

I need to use Bootstrap CSS for better UI in wp-admin but if I enqueue the bootstrap.css, it's affecting the admin default UI by changing background colors, etc. How can I use bootstrap.css inside wp-...
6
votes
3answers
971 views

Replace audio/video enclosure with player?

Current state: I'm parsing XML feeds into the front end and/or the back end (Admin UI), but not into the DB. Inside those feeds i place mp3- and video content, currently only as plain text (no link, ...
-1
votes
0answers
27 views

Email verification function inside ajax registration pop up

I have created a registration popup form following this tutorial and its working. Also installed woocommerce user email verification for sending verification email to newly registered user. When i ...
1
vote
2answers
41 views

Clearing caches on plugin uninstall

When a plugin is uninstalled, it should remove all related data from the site (or network, if on multisite). If a plugin adds tables to the database, for example, it should remove those tables from ...
0
votes
4answers
5k views

add action wp_head not working

I am trying to add some code to the head (namely a block of tracking script) via a plugin I am making. The plugin has an interface where the user enters some details which are then added to the ...
-1
votes
1answer
71 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
1
vote
1answer
15 views

null callback in add_settings_section

Some code I'm looking at from a Plugin contains this line add_settings_section("section", "Settings", null, "theme-options"); which has a null callback. Having looked at https://codex.wordpress....
0
votes
1answer
30 views

Plugin Development sqlite or WordPress' database

I am developing a plugin for WordPress that has to store between 4.5-200mb of data. I thought of using sqlite to store and access the data instead of using WP's database. From a performance ...
1
vote
1answer
26 views

Wordpress multisite apply different options over each site from same plugin

I created a plugin for the bootstrap navbar. Then I created option page for my plugin. In my options page, I have two types of navbar (Default navbar and Full-width navbar) only can choose one of ...
2
votes
1answer
767 views

save_post hook not triggered in WP v3.6.1

I developed a plugin having a custom metabox that is using the save_post hook to store data. The plugin is 18 months old and is used by thousands of customers, so I'm pretty sure everything is good. ...
1
vote
1answer
5k views

Auto gallery from folder contents

I want to create a WordPress shortcode that will add an automated gallery of the contents in a folder. I am currently trying to implement this in a site that publishes 12 annual magazine issues, so as ...