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
votes
0answers
9 views

Deleting one multidimensional array in options based on button click

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
22 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. ...
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 ...
-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 ...
0
votes
1answer
33 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
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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
38 views

wp_mail does not display mail content

I am trying to add custom mail form so clients can send some details and attach files to form. Form works fine and I can receive mail but when I add attachment function mail received is blank however ...
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
16 views

Enqueue scripts in footer

I'm trying to build a plugin and enqueue my scripts to footer. For performance reasons I'd like to load this plugin scripts after the functions.php scripts, because furthermore it will break the page ...
0
votes
0answers
27 views

Gzip compression not working [migrated]

I have enabled mod_rewrite, mod_deflate, mod_headers and mod_setenvif in Apache and not mod_gzip, mod_filter. Tried <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and ...
3
votes
2answers
69 views

Unable to write test cases for a WordPress plugin using PHPUnit and WP-CLI

WordPress setup: Installed WordPress using VVV. PHPUnit setup: I have setup the testing suite as mentioned in Pippin's blog. And accessing PHPUnit after logging into the box machine by using vagrant ...
2
votes
0answers
26 views

How to create thumbnail of different files?

I am storing my uploads in a separate folder and using separate table to save the location in database. I have gone through WP_Image_Editor , wp_image_editor_gd and wp_image_editor_imagick . I also ...
0
votes
0answers
19 views

Wordpress calls my plugin while trying to update Wordpress Core

I am developing my plugin right now, and I have faced with one issue. I tried to update my Wordpress core to the latest version but it shows me an error in my plugin. I think I doing something wrong. ...
0
votes
0answers
36 views

wp_mail and mail function not working when mail server is ok

i'm working on plugin with porpose : Get information from user and then send file url to user's email i used ajax and everything is ok without send mail i test my wordpress site for send email with ...
-1
votes
0answers
19 views

Plugin “Remove Slug From Custom Post Type” gives 404 Errors

This plugin did all I wanted, but it started giving me 404 errors, which go away after a while but I'm worried they'll come back. I do get this error while posting a new listing (real estate theme) ...
0
votes
0answers
16 views

Ajax interfering with widget back end Javascript

I have a plugin that creates a widget that allows users to click a button and select an image. I have noticed that immediately after the widget is dragged and placed into a widget area, two Ajax ...
0
votes
1answer
19 views

How to change the wording of front-end `next article` for custom type registered in a plug-in?

I am working with another developer on a plugin that register and defines a custom type of posts. It's working as intended in the back-end but I would like to change the wording of next article and ...
0
votes
1answer
16 views

ACF in wordpress

Hi i have a slight problem when making a custom post type widget. The problem is that when i want to get the field i want to use in a inline style it doesn't work. This is my code: class ...
0
votes
1answer
16 views

Custom post type in Custom widget - $listItem

Hi i have a slight problem when making a custom post type widget. the problem is that when i add a custom field in the code the part that shows the custom field information get's on top of the output ...
0
votes
1answer
25 views

Get (eventual) permalink from post within Edit Post in Admin panel

I'm working on a plugin that needs to access grab the Permalink from within the Edit Post screen to send it to a link-shortener API. The catch is that I will need to grab the permalink before the post ...
0
votes
0answers
19 views

wp_signon not working on website but it works on localhost

wp_signon() is not working on my online website, though it works on localhost. I am making a custom login for my website, and can't understand how to solve this problem. When I log in on localhost (...
0
votes
1answer
16 views

Add post type pages with plugin

Can I add the archive and single page for a custom post type added by my plugin? I know it will only have to be a best guess with contents like: <?php get_header(); ?> <h2><?php _e('...
0
votes
0answers
36 views

Custom Meta Box Image Gallery Not Saving

I'm having an issue of a custom meta box I'm building based off of WooCommerce's Product Gallery meta box. The meta box is not saving for some reason. I've tried some options from many different ...
1
vote
0answers
20 views

Correct way check nonce (security) using old Options API

I am developing plugin for Wordpress. Firstly I started using Settings API it looks good, but it is little bit complex and it doesn't provide the way to handle options manually. I have quite ...
0
votes
1answer
20 views

What is the replacement for rich_edit_exists()?

A plugin inserts users into a database. If the user is an author, the visual editor isn't showing until the user saves their profile. I'm trying to figure out what setting isn't being added to the ...
0
votes
1answer
24 views

Issues separating my Plugin pages into different files

As my last (first) plugin got a bit hard to manage with 6 admin pages in 1 file, I decided to split them up for this one, but I am getting nothing but issues doing so. In my plugins functions file (...
0
votes
1answer
51 views

Ajax not working to insert, query and result data

On my site, through a form I send/register same information in database, do a SELECT/query and return it! Return the last table saved in database, just that user just entered on the form (along with ...
0
votes
2answers
32 views

My stylesheets are not enqueuing

I'm in Wordpress 4.5.2 on Windows 10 and I'm trying to register and enqueue my stylesheet in Wordpress, but it just isn't working. I'm having the same problem with jQuery. I have this code in a ...
1
vote
1answer
59 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-...
0
votes
1answer
20 views

How to add update function to plugin without adding it to https://wordpress.org/plugins/ [closed]

Anyone have an idea or could point me to a tutorial/guide. All help is appreaciated.
0
votes
1answer
18 views

how to add a comment button to be displayed only for the posts in the home page [closed]

I need a button which directs to the comments section of that particular post. I want that button to be displayed only in the home page for every post. Can anyone help me with this My website url is ...
2
votes
2answers
52 views

Page Reloads Before AJAX Request Finishes

I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX ...
1
vote
1answer
26 views

How to use a hook to override an update_post_meta call in a plugin?

A plugin I'm using contains the following code: $download = array( 'post_title' => $title, 'post_content' => '', 'post_status' => 'publish', '...
0
votes
0answers
32 views

How to change the capabilities from upper case to lower case, while inserting onto database?

I am trying to insert custom user roles like Student, Teacher and Parent. While inserting the capabilities into the database, it is displaying the role in uppercase. I am not able to fetch the user ...
0
votes
1answer
39 views

Set a Custom Post Type as a Homepage

Im trying to set up a custom post type single post as a homepage. I have custom plugin, it registers CPT called STACKS, Im using it to build various one page scrolling pages... It has its own custom ...
0
votes
0answers
31 views

I can't add data from wordpress admin to database

I want to add some text from a textbox in admin to database. I've crated a table in database and now I want to check nonce and if everything was right, submit data to database. I've used this code ...
6
votes
3answers
204 views

Where to store plugin settings fields

I am developing plugin right now, and I have one questions about best practices and conventions. What I need ? My plugin is going to store some predefined object, list of objects (or just ...
0
votes
0answers
34 views

How should I share my plugin error with the end user (frontend)

Let's start by saying that I'm a total wordpress noob, I've googled and searched a little on Stack Overflow and I can't seem to find the information I'm looking for; a big part of that is I'm not ...
1
vote
2answers
42 views

Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]

So I have been working on WP sites for a little bit now and I think I'm getting to the point where I'm starting to get to a wider range of clients with unique site builds. One site I was assigned to ...
0
votes
1answer
28 views

Include a php file from another plugin

Inside one of small custom plugins I really need to inlcude a file from another plugin, in order to be able to create and save obhect of a class that is declared there. What I have tried and the ...
1
vote
1answer
28 views

Putting a resized image into media library with wp_get_image_editor(

I'm using wp_get_image_editor() to resize and save an image that is being uploaded to the Media Library. $image = wp_get_image_editor( $newattachment_url ); if ( ! is_wp_error( $image ) ) { ...
0
votes
1answer
34 views

Theme independent plugin by using default page template

I'm trying to build a plugin that can be used within every theme. It uses a custom post type and i used the action hook to change the content, so i could use extra meta fields and such. Also explained ...
0
votes
0answers
32 views

get selected Option value in Dropdown selection

I want to store some Custom User Meta in Edit User Form. i but i cant get it working :/ Here is the following code add_action('show_user_profile', 'add_extra_berufe'); add_action('...
3
votes
1answer
35 views

Set number of article per number of page

I'm making a timeline using this awesome free theme. As you can see in this theme, it's a timeline separated by "Page". We have "Page 1" with 5 articles, "Page 2" with 5 articles, etc ... I changed ...
1
vote
2answers
37 views

Install and load additional plugins when running unit tests

I want to write unit tests for a plugin. I have used WP-CLI to scaffold the test WordPress instance and can successfully run tests. The plugin I'm writing unit tests for is a site specific plugin ...
0
votes
2answers
26 views

API to filter new user registration $POST data?

Is there an add_filter where you can see/modify all the $POST data submitted for a new user registration before the user is created? Thanks
0
votes
1answer
24 views

Hook for plugin to show content for certain urls

New to WP development. I want my plugin to dynamically show content for certain urls, for example, when the user navigates to /my-plugin or /my-plugin/key, my plugin would provide the content. The ...
0
votes
0answers
26 views

Grabbing data from Meta Box

I am using someone elses code for uploading files to a custom post type, and I need to be able to get the URL back from it. In the editor, the value is the URL so that isn't an issue, but I need to ...