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
vote
1answer
95 views

What filter should I use to insert a button inside on Media>Add New

I am adding a new way to upload a media file to WordPress. So I am looking for a way to add a link or a button to the Upload New Media page. What is the recommended filter? Or is there another better ...
-1
votes
2answers
64 views

Wordpress Admin Login Custom Logo

I know this may not be possible.But just trying to know wordpress deeply. Is it possible to replace default admin login page with custom one?
0
votes
0answers
53 views

Add WP NONCE Inside Plugin Option Page

I have very simple plugin options page. Somebody told me this admin options page is insecure and vulnerable XSS Attacks. He told me to add wordpress nonce, where I should put it? and how to make sure ...
0
votes
1answer
49 views

How to optimize multiple insert into wordpress database

I had main file with my plugin and the another file with sql command. In the second file I create two tables and write data to one of them. But I have problem with. In my private computer everything ...
0
votes
3answers
115 views

Insert Array in Plugin Database

trying to create one plugin, getting some issue to submit the array data in wordpress database. $formDATA gets the array value now issue is when $sql = "INSERT INTO `".$table_name ."` ...
1
vote
1answer
52 views

Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?

I'm trying to use get_home_path() in my plugin, however, I get a call to undefined function fatal error (running Wordpress 3.8). I believe this would imply that my plugin is being loaded before ...
0
votes
0answers
16 views

Wordpress Option Api:Using Image in Checkbox

I am using radio in settings api.I want to replace "Left" and "Right" with image.My code is function menu_position() { $options = get_option('plugin_options'); $items = array("Left", "Right"); ...
0
votes
1answer
65 views

Should I put my plugin javascript inline?

I have a small bit of (localised) Javascript bundled with a plugin. Currently it's in a non-minified .js file, called at via enqueue_scripts. Given that this script will likely run on every page, ...
-1
votes
2answers
1k views

How to Add Font Awesome Icons to WordPress Menus?

How to Add Font Awesome Icons to WordPress Menus
0
votes
1answer
23 views

Plugin option default value

Hi I am making plugin default option sets.I put my code like this.Basically I want to give an image path in plugin folder.I did this . function add_scroll_default() { $tmp = ...
0
votes
1answer
155 views

Trying to avoid including wp-load.php

I am working a plugin where I am trying to connect an HR system with WordPress. There is an XML API on the HR system so I have written the plugin to take the data and put it into a WordPress database ...
0
votes
0answers
94 views

How can I include scripts in a jquery loaded page, for a jquery wordpress widget?

Iam writing a wordpress widget with the following pages 1) I have master page (master.php) - is the main plugin page - Loads a second page (slave.php) with jQuery 2) The slave page - has php, ...
0
votes
1answer
37 views

Adding Dynamic Stylesheet

I have added my dynamically generated stylesheet by this way. add_action( 'parse_request', 'my_custom_wp_request' ); function my_custom_wp_request( $wp ) { if ( !empty( ...
2
votes
2answers
435 views

Using wp_filesystem in Plugins to store customizer settings

I try to fix my plugin with the answers i got here: Using wp_filesystem in Plugins Background i wrote a theme (https://github.com/bassjobsen/jamedo-bootstrap-start-theme) and a plugin ...
0
votes
2answers
530 views

Writing a wordpress plugin and trying to include the Facebook PHP SDK

I'm writing a plugin for Wordpress that required the Facebook PHP SDK. I've run into what I think is a common problem judging from the number of results I've found dating back to over a year ago. ...
0
votes
1answer
90 views

Form submission to another page returning 404 error [duplicate]

I'm modifying a form plugin, and trying to have it submit to another page chosen by the user. Right now the page it submits to is page_id=6. If I navigate to this page myself, it prints Array(). When ...
0
votes
0answers
28 views

Can anyone tell me why I can't edit a plugin when it is installed without having to re-install?

I am using a shortcode plugin as a framework for the short codes I want to add that go with my theme. I decided to just include the plugin in a repo for the user to dl so I am not building theme right ...
-1
votes
2answers
62 views

Fixing plugin for wpdb::prepare

A previous developer created a plugin for a website I manage and everything seems to work okay, except I'm getting the error "Missing argument 2 for wpdb::prepare()". I understand that the arguments ...
0
votes
1answer
29 views

Plugin development: can't update settings with multiple settings sections

I've got my plugin options set up to be in multiple sections, for ease of use and more efficient database calls. However, since reorganizing my Options page I can only seem so save changes made in the ...
0
votes
0answers
14 views

Alternative ways to make ajax requests in wordpress [duplicate]

I'm currently having a problem with working with AJAX. Well not really a problem since I can pretty much do what I want to do. The only problem is my boss saying that the admin-ajax.php file is an ...
0
votes
0answers
86 views

Change permalink based on post category

I am looking for a way to change the permalink structure based on the category a post is in. If the post is in the "blog" category I would like the permalink to be /blog/%postname%/ and if it is any ...
0
votes
1answer
220 views

Multiple entries in get_option results? or why is _multiwidget set to 1?

I am developing a wordpress widget, and need to store some user configuration values, that is why I am using wordpress update_option and get_option. I am new to widget development. I have some ...
-1
votes
1answer
113 views

Need edit profile link in the menu for logged in users

I have a page called edit profile, i have installed the profile builder plugin,so the users can edit their profile from front end, if the user is logged in i want to show the edit profile and logout ...
0
votes
0answers
14 views

Is there something like theme test drive for plugins?

Basically, I'm wondering if there is something like theme test drive (which lets you use and presumably tweak on theme while non admins see another) but for plugins. My goal is to be able to ...
0
votes
0answers
60 views

how to remove scripts loaded in the footer

Is it possible to remove scripts that are loaded in the footer in wordpress? I currently have the code that works for scripts but only for the one's that are added in the header via wp_enqueue_script. ...
0
votes
1answer
74 views

Verify Nonce returns false - Request Nonce returns correct value

I'm trying to verify that the nonce I created exists but for some reason it keeps returning false, why is this happening? Creating my nonce: <?php ...
1
vote
0answers
39 views

remove add new post, if there is already one post

I have a custom post type, but I want to allow only one post. if the user posts then the add new post should should be disabled or removed. so only post is allowed of that custom post type. If the one ...
0
votes
1answer
57 views

Use different archive template for plugin

In my blog, I'm using a plugin for an encyclopedia. Unfortunately, the plugin uses the archive template from my blog. How can I use a different page / template for the encyclopedia? Here is the ...
0
votes
0answers
37 views

Custom post types working in functions.php but not in plugin

I want to register a WordPress custom post type. This works perfectly fine in the functions.php, but not in my plugin file. The plugin does work except for registration of the CPT. The code is pretty ...
0
votes
1answer
56 views

Resize not resizing images with Capitial extension like JPG

I have used thie resize method to resize image and its working fine but only the problem which i am facing right now is that is not resizing image with extension in capital letter like JPG,JPEG,GIP. ...
0
votes
1answer
48 views

Add column in WP user but it goes wrong

I add a column to users page, it goes wrong when checkbox is not in correct position. This is my code, can you help me to move checkbox to the correct position? public static function ...
0
votes
2answers
61 views

Redirect returning users to a certain page?

Is there a way to redirect users returning to the site who are already logged in? Assuming something like: function returning_redirect() { //code here } add_action('auth_cookie_valid', ...
0
votes
2answers
58 views

Is there any way to hide page from dashboard (all pages list) OR navbar from plugin function?

I am trying to include a template from plugin which required to display some of my custom information's. I wrote function to insert a page and included the template. It's working for me but once i ...
0
votes
1answer
25 views

Display WP Start bar on front page only

I was wondering if someone could help me display the plugin WP Start bar only on my static frontpage. If it helps my static frontpage url is: http://zackarylundquist.westhostsite.com/portfolio/
0
votes
1answer
41 views

How can I get plugin meta data without knowing the plugin folder?

I am looking to get meta data about an installed plugin from another plugin. Theoretically, to get the version, I could do: $data = get_plugin_data( 'expected_plugin_folder_name'); $version = ...
0
votes
2answers
50 views

DIR vs URI when defining a path to a file

When including files in a plugin, I've seen people do WP_PLUGIN_DIR.'/'.dirname(plugin_basename(__FILE__)).'/somefile.css' and yet WordPress wp_enqueue_script/style uses URI for the file path (such ...
2
votes
1answer
536 views

Using wp_filesystem in Plugins

I wrote a plugin (https://github.com/bassjobsen/custom-bootstrap-editor) this plugin writes a stylesheet to wp-content/uploads/cbe. I will use something like the code below to do this: $upload_dir = ...
1
vote
1answer
30 views

Own plugin corrups plugin-activation

I am currently working on a simple plugin. Activating my plugin works fine. However, I can't activate any other plugin as long as mine is active. Also, the edit links won't work. Any help with this ...
0
votes
1answer
96 views

How to include a file using get_template_part() in a plugin?

A very simple question may be, but I'm struggling. In theme development, I worked with get_template_part() many times, and I understand its basics. But when I's developing a plugin, I wondered using ...
-1
votes
1answer
58 views

Best way to handle a form post in plugin

I'm doing a plugin that needs to be able to post data to a third party API. Users will fill out a form and press submit. The form itself - would it be "correct" to simply append html to a page ...
0
votes
0answers
28 views

How to internationalize the sub menu name “categories” in Custom post type?

I'm trying for translation. I made a plugin with custom post type everything is okay. Only one thing i can't able to translate which is categories sub menu menu in custom post type. $args = array( ...
0
votes
1answer
337 views

Get custom wp_query search results to appear on search.php

I have a search.php page in my template which works fine when used with the native search widget, but I am making a search plugin which has a custom wp_query in it and I want those results to appear ...
0
votes
1answer
76 views

Pagination not working with custom wp_query

I am trying to make a custom search plugin but pagination does not work (it shows up with the correct number pages but does not function properly). Relevant part of the search plugin (from the main ...
1
vote
1answer
1k views

How to Add Custom Taxonomy To Woocommerce Plugin

I am trying to add a Custom Taxonomy to Woocommerce by targeting the product post type in Woocommerce. I used following code and added it into functions.php I am not getting any error message but the ...
0
votes
1answer
35 views

the correct way to use options from settings page [closed]

I'm creating a plugin in Wordpress and am a little confused how I should use settings I set in my settings page. I used: http://codex.wordpress.org/Creating_Options_Pages to create my settings page. ...
0
votes
0answers
82 views

Adding Custom Post Type to Woocommerce

Can you please let me know if there is any way to add your own Custom Post Type to Woocommerce and use that instead of using Woocommerce Product? Thank
-2
votes
1answer
124 views

Deprecated error notice

I am doing a plugin tutorial, but it was made for wordpress v2.something. The problem is - when I go to admin menu, under Settings - I get a notice error => has_cap was called with an argument ...
0
votes
1answer
125 views

The Events Calendar Plugin - List View Background Colour Issue [closed]

I'm trying to look for some help, I've got a WordPress website that I'm working on. I'm using this plugin called The Events Calendar, but in List View, the background keeps showing in transparency... ...
0
votes
1answer
53 views

Custom slug in url for CPT and taxonomy

I want to add a custom slug to permalink for CPT and taxonomy. Like this: http://mydomain.com/my-custom-slug/post-slug http://mydomain.com/my-custom-slug/product_category Here is my CPT and ...
0
votes
0answers
26 views

Is it safe to use PUT and DELETE requests

I am building my new shiny plugin and since I've read about REST etc.I wanted to do things right and implement PUT and DELETE requests, and not just use POST and GET like I did until now. But now I ...