plugin-development's questions - English 1answer

4.685 plugin-development questions.

Under the appearance admin menu, I have customizer added by the theme, and theme options added by a plugin. I'm using this code to hide both menus ( submenu's of Appearance )for ALL admins apart from ...

I am trying to manually add a new plugin to WordPress site (I need to add a customized plugin). I do it by: uploading it via Ftp server (with FTPS connection) to /var/www/html/wp-content/plugins ...

What is the best plugin for : Grocery Apps: Amazon Pantry, Big Basket, Grofers, Grocery Shopping All in One, Walmart Grocery etc. Food Delivery: Uber Eats, Yelp Eat24, Swiggy, Zomato, Food Panda, ...

Can you help me with this: What is the best plugin in Wordpress for Cab Comparison: Uber, Ola, Lyft. Even if it is premium no problem. Thanks in advance.

This code works on my localhost, but when I install the plugin on live website, I have to do some changes. Is there a way to write something that will work on any WP website? The problem is path... ...

I'm writing my own php class and I have multiple functions within the class. Something like this: class JSON_API_Hello_Controller { public function test_cat(){ global $json_api; ...

I am getting the famous "The plugin generated xxx characters of unexpected output during activation." error when I activate plugin I am working on. Terminal says my files are in us-ascii, but when I ...

My website has a dynamic post based on its URL params. Basically, it's a common post but its content has only a short code that builds the final HTML. It seems that the Disqus comments are bound to ...

I'd like to add a custom form to the admin bar in Wordpress. is there a way to accomplish this? So far all of the documentation seems to only allow the addition of simple text links.

I'm teaching myself how to build Wordpress plugins. I found a great guide to creating a Wordpress Meta Box and saving the form input from it. https://themefoundation.com/wordpress-meta-boxes-guide/ ...

I have a requirement where the number of checkboxes outputted in the metabox is not fixed. Had it been fixed, I could've followed any one of the tutorials on the internet which suggests I name each ...

I'm thinking this may be more of a problem with my PHP rather than my use of the settings API, but I can't seem to get Wordpress to save an array of data for a multi-select box. The multi-select box ...

In a custom WordPress plugin I have a folder /classes with about 20 classes. Classes sometimes change, come and go. I want all those classes from the folder to be loaded automatically. No my idea was ...

I have a function to add wp users. There is a $password = wp_generate_password(); in it. This works. Now I'm creating a class XenWord_Add_WP_User based on the function. In fact, I copied the ...

Something weird is happening in my class. Basically I'm trying to manipulate the $wp_admin_bar through AJAX but when I receive the response I get a NULL value. Although debugging the global when my ...

I am trying to translate my plugin strings, but for some reason my plugin does not find the strings via the _e() and __() functions. My plugin directory is called test-plugin. My plugin /test-plugin/...

I am currently making a WP widget and I am stuck with this. I want to pass a variable $emailReceiver from my form() method to my deliver_mail() method. The problem is that my deliver_mail() method ...

I am using wp_handle_upload to upload files from a theme template file. if ( ! function_exists('wp_handle_upload') ) require_once( ABSPATH . 'wp-admin/includes/file.php' ); $uploadedfile = $_FILES['...

I don't entirely understanding how to save my plugin's settings properly. When I click on the "Save Changes" button it saves data but it does not show any successful like message. Do I need to add an ...

I recently read this tutorial about custom fields in WordPress and wrote a simple plug-in to provide a metabox with a set of input fields. I do not use the Meta Box plug-in promoted on the web site. ...

I found a CSS animation snippet on Codepen, and would like to add it in my WordPress site for preloader animation, but I couldn't find any related help or plugin that would allow me to add a Preloader ...

I'm trying to access the value of [product_id] with a foreach in the following object. I appreciate I can't treat it like an array but none of the answers I'm getting seems to work eg. $package = ...

I'm trying to override a method (my_packages) from the WP Job Manager Paid Listings plugin by extending it's class from within a custom plugin Here is how the source code (none-related code removed) ...

I am using Sender.net for email subscription lists. This site give me some information to add user's emails to subscription list. I want to use WordPress ajax to for this. but it return error 400 bad ...

I have created a custom menu page using add_menu_page() function. Everything in that page appears as it should in the screen. What I am trying to achieve is adding another submenu under the under the ...

How can I check if the editor that is currently being used is Gutenberg in a WordPress plugin? I need this because Gutenberg lacks post_submitbox_misc_actions, so I need a fallback which will only be ...

I am working on a plugin that provides an endpoint for handling OAuth2 authorization against a remote server, on successful authorization stores some information from that server in the Wordpress ...

I'm trying to store and admin page into a variable and sending back to an AJAX request. My code is the following, considering I'm in a class: add_action('wp_ajax_get_dashboard', array('$this', '...

I am defining $_SESSION['session_test'] from $_POST['reason'] I get from AJAX call. Inside of this function, $_SESSION['session_test'] does get defined, and I get desired echo result. add_action('...

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works ...

I am developing a WP plugin. I have two same AJAX calls, one is working, and second one is giving me 400 Bad Request error for admin-ajax.php. ReadyState is 4, responseText is: " ↵ ↵ ↵ ↵ ↵ ↵ ↵ ↵ ↵ ↵ ...

I'm in the process of developing a WP plugin but my problem is that it is very slow and apparently affecting the site's performance. What are the steps I need to make to make my plugin faster?

I have a blog in several languages and I want that when sending the sitemap file all posts that have a specific structure are excluded: https://www.miweb.net/pt-pt/articulo/ I want to exclude all ...

Hello I have created a plugin in my WP site. Now I need a help how I can use tab in my plugin. Here is my code. function users_settings_page() { echo '<a href="?page=groups-settings"> Group ...

I am making a plugin to display featured pages of a site, but it depends on a flex container and i cannot assure that a user's sidebar is going to have a display of flex. However, looking for ...

I have a select box on a form that gets board types from the ConnectWise api and is populated as such: <div class="form-group"> <label for="support_type">Support Type</label> ...

I'm trying to get default nodes from the WP Admin Bar through AJAX. I get NULL if I var_dump the variable which should store the Admin bar object. class my_class { var $Admin_bar; public ...

I was trying to create a plugin admin page with no admin notices at the top. I want that admin notices inside the table structure i am going to add. How can i do that. I used css to hide notices. But ...

i tryed to return multiple Values from an Ajax Call, I would Like to retun Value a and value b in two separat Variables in my Ajax function. Is it posible to do that? or could I use an Array? Or ...

I am quite new to Wordpress development, and am writing a plugin which needs to have an option of uploading a spreadsheet, which the plugin will then work with and process data as appropriate. This ...

I am developing a WordPress plugin, but before that I have checked the code for the few plugin already developed. I have seen a common approach to restrict the direct where the plugin developer starts ...

I am using this code to auto create a page when I activate my plugin.. function insert_page(){ // Create post object $my_post = array( 'post_title' => 'My post', '...

Hello I have a select box in which when one item is selected a update_option event fires and get's the selected item's value and echo's it on the page without having to reloading the page. I've put a ...

This is a very basic question and there are a lot of solutions to it - however what is the recommended (or at least a good) way? Problem statement: While processing a request to a WordPress project ...

I have created a newsletter subscription form using WPNewsman Lite plugin. There are 2 fields Email and I agree... checkbox. They are both marked as required but users can click the submit button or ...

I am creating my first WP plugin and I'm having a some issues when trying to move a custom post type to the bin. I have a custom post type and in this I have a custom meta box with four fields. I can ...

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. ...

I am facing one strange issue and hope to get right direction from some experienced. In our test case the below query is listing 100 post per page and when we go to next page again 100 without any ...

I'm trying to incorporate a list of checkbox in my plugin's admin settings page from which users can select a few countries from the list of all countries. So far I've done this: add_action( '...

I'm building a plugin which generates custom css, I have 2 classes: The main class, with core functions The compiler class as following (I simplify everything, because there is a lot of options): ...

Related tags

Hot questions

Language

Popular Tags