Questions tagged [plugin-development]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

How do I remove the branding of the theme Loud Music from the footer in Word Press 5.4.2?

I have installed the theme Loud Music on my site. How do I remove the branding that they placed "Theme Loud Music by Creativ Themes" and replace it with my own?
-1
votes
1answer
11 views

How can I create a navigation menu in the sidebar that can also act like a slider?

I am trying to create a page with a series of lesson/tutorial and looking to have something like a menu on the right/left side bar so the access to the topics are easier. Something like in the page ...
0
votes
0answers
5 views

Product Variation not showing correct term name on admin

I have created a product variation programmatically using this code block private function createProductVariation($product_id, $variation_data) { // Get the Variable product object (parent)...
0
votes
0answers
11 views

Settings checkbox not triggering function

I have recently created this code as a plugin to store a setting in the WooCommerce general settings. The checkbox is meant to // Check if WooCommerce is active if ( in_array( 'woocommerce/woocommerce....
-1
votes
1answer
13 views

How to synchronize an e-commerce site and a pharmacy management software?

Here is my problem. I have to create an e-commerce store for a pharmacy. The problem is, I don’t know how to synchronize the site and the pharmacy management software so that when a purchase is made ...
0
votes
0answers
8 views

Get multilingual WooCommerce products in REST API

I am trying to retrieve WooCommerce products by language using the REST API. For products in default language(English) base_url/wc/v3/products/ works fine. Also /wc/v3/products?lang=en works fine. But ...
0
votes
1answer
14 views

In wordpress plugin wp_signon shows error

I written a plugin to handle login functions. The plugin checks for login info in the_content filter and shows only for logged users. wp_signon shows an error/warning Warning: Cannot modify header ...
1
vote
1answer
26 views

add more custom post types and custom role to the code

I want to add more post type and more role to the code below. The code is working great for single post type or role, any idea how to do that without breaking its function? //Remove CSS custom post-...
0
votes
0answers
22 views

How can i avoid duplicate same post in wp?

I m working on a wp plugin and i have 3 tables. In my plugin i have two different loop: both of them create programmatically a page from my tables. My problem is that if i refresh the page, it ...
1
vote
0answers
16 views

how to append custom metabox field with the ACF custom fields id in wordpress development

I am new to wordpress development, I have installed Advanced Custom Field plugin in my project and created a two text fields Name & Email and also I have created a plugin which will create a ...
0
votes
0answers
25 views

Why is my shortcode not working?

I m making a plugin and i need to connect to db for get some values that i will put in the content of new page that will be created. It s strange because this morning it worked and now there is a ...
0
votes
0answers
22 views

WordPress rewrite rule depend on meta values not ids

I have a custom post type and i'm using the rewrite rule to change the URL from mysite.com/collection?brand1=365&brand2=412 to mysite.com/collection/compare/365-412 But I want to depend on meta ...
0
votes
0answers
38 views

Adding a “Enable/Disable” or “Activate/Deavtiate” to custom plugin on rows as action links

there has been a change in scope for our project which includes the need to keep row entries in our custom plugin but also at the same time have the ability to disable/deactivate it within the plugin ...
0
votes
1answer
12 views

Update wordpress user roles not working as excepted

I have issues when trying to update or set new user role from an array returned by external API : // array of roles $roles = array("student", "pro" .... ); // get user data $user =...
0
votes
0answers
15 views

Add a new page for every value added in my db table

i'm working on plugin and i need create a page every time a new values is insert in my table. That s my function for create a page with value name. In $name there are all the values from my db and in ...
1
vote
1answer
31 views

$_FILES empty on created_{taxonomy} and create_{taxonomy} yet is is not on edit_{taxonomy}

been struggling with a bug. On created_{taxonomy} hook yet in edited_{taxonomy} hook works and upload the expected file with no issues. As per the following code I added custom field type along with ...
0
votes
1answer
19 views

Update Multiple Post Meta for the Same Post In One call?

How can I update multiple fields/Custom fields for the same post using only one call? Everything I came across are cases of multiple calls of "update_post_meta", for each of the fields. Is ...
0
votes
0answers
64 views
+50

Override a function on editor.js file on Elementor

I'm working on a Elementor Project, I need urgent help to add few devices here. Since, 'editor.min.js' is on Elementor core file, but I need to add/Override few lines on this file. What I've doing - ...
0
votes
0answers
36 views

Cannot Get back into dashboard Fatal error: Can't use method return value in write context

Im getting this error from updating a new theme on our wordpress. and now cannot log back into our dashboard. to take out the plugin. We do not have cpanel... is there anyway to access the ftp or get ...
0
votes
0answers
14 views

Error Class not found when include(wp-load.php) with File Upload Type WPForms On

Hello I wanted to ask about some error on WP, I just add/include(wp-load.php) so my own plugin can use wp short_code and check if it's logged in or not, but now I've problem with existing plugin, that'...
0
votes
1answer
33 views

Shortcode Attributes to Return different $_POST

I am creating a solution to enable front end editing of custom fields, I am using hidden input containing the custom field to send via POST request to an editing form, the form contains default value ...
0
votes
0answers
23 views

How to store sensitive user data (passwords)

I want to create a plugin addon that allows my sites users to share private login information in a secure manner. So they'll enter these private details in a form on the frontend and I want to be able ...
-1
votes
0answers
19 views

Projects / Services For Learning Plugin Development

I'm only starting out in wordpress development. I'm interested in learning how to development plugins for themes such as projects or services and make use of these with in wpbakery throughout my theme ...
-1
votes
0answers
25 views

database should show on front end in wordpress [closed]

function display_branch_form() { wp_enqueue_style('display_branch','https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css'); wp_enqueue_script('display_branch','https://...
1
vote
1answer
23 views

filter default query to show just selected level of child pages in wordpress

I'm working on a site that has a fairly large page structure a few levels deep - in some sections there are a lot of pages. So I want to have functionality if user choose on select box level 1 then ...
0
votes
0answers
29 views

Drop down question

I am new to wordpress. Please pardon this question as it may seem mundane. How do I make a drop down menu for Information to the end-user in wordpress? similar to this... Thanks in advance...
0
votes
1answer
12 views

Adding customs fields on each product on the cart

Hi people i add a custom textarea field on each item of the cart. The problem is that when i tried to update the cart, the values is not updated, i lose the information. i don't know what i am doing ...
1
vote
0answers
10 views

Replace youtube embed in wordpress

I am using this code to replace youtube video: add_filter('embed_oembed_html', 'foo_embed_oembed_html', 99, 4); add_filter('video_embed_html', 'foo_embed_oembed_html'); function foo_embed_oembed_html(...
-2
votes
0answers
16 views

I want create a page in my site that will have the following functions: [closed]

I want create a page in my site that will have the following functions: I have a admin account and database of images 1.png,2.png,3.png,...,100.png(in google drive say) I will have 50 student ...
0
votes
0answers
16 views

How can I hook forms to my custom plugin?

I'm creating a plugin that does API requests. I want to create forms using wordpress editor, elementor or WPforms so that when a user submits the form, the plugin receives each value in a form as a ...
0
votes
1answer
28 views

Wordpress 5.4 - How to prevent to enter only certain values in custom field

WordPress version - 5.4.2 I am creating one WordPress plugin and in this plugin, I need one metadata for the post. I added meta box accesstype visibility successfully. It is a select box and it has ...
0
votes
1answer
17 views

Can't upload image via submitting custom post from frontend

I have an issue with submitting custom post from frontend with image. I have a form with post title, description and image, that should be featured image of the post. So when user submitting post, it ...
0
votes
0answers
10 views

Block settings with InnerBlocks and InspectorControls does not show up in settings pane

I am trying to build a block element for my plugin. I want it to have block settings showing up on the right side (under the "block" tab). I am creating an InspectorControls element and ...
0
votes
1answer
26 views

How can we upload file to root directory of wordpress

I'm working on wordpress project, Theme have some demos i've added add_menu_page where all of the demos stored e.g pictures and names, I know the REST-API where i've added condition if theme license ...
0
votes
0answers
15 views

develop extansion to woocommerce

I using woocommerce + wordpress in my store. i want to add new feture to my store: i want to display my products in a nice catalog like https://3dflipbook.net/+ The catalog will list all the products ...
0
votes
0answers
21 views

Create new page in wordpress plugin which doesn't exist

Sorry about confusing title but let me explain what I'm trying to do. I'm creating an online form in a plugin which allows the user to enter some values. Once they click on submit the new page should ...
-1
votes
0answers
14 views

Custom booking system in Wordpress

I am developping a restaurant website in Wordpress, and I am working on a custom booking system. In the front-end I need a form with the following fields : date of booking time number of diners name ...
-1
votes
0answers
17 views

The plugin generated 12 characters of unexpected output during activation. If you notice “headers already sent” messages,

I create test plugin for learn purpose. i face this error on plugin activation. error: The plugin generated 12 characters of unexpected output during activation. If you notice “headers already sent” ...
0
votes
0answers
13 views

Use Wordpress Plugin without WP head

I have created a custom post template without the WP Head and footer because I don’t want to load any of the themes and plugins. Now, I want to cache the custom post template by an SG Optimizer Plugin....
-1
votes
1answer
21 views

how to set approval of admin for wordpress posts submitted by the user?

i'm using BuddyPress bp-simple-front-end-post(addon) in my wordpress for users to post on my site from front-end. is it possible for the posts submitted by user will need admin approval. ?
0
votes
0answers
18 views

Adding shortcodes to multiple pages with function

I am building a plugin that allows users to display information to the front-end of a website. When users want to display this information they have to add in a shortcode to the page they would like ...
0
votes
0answers
16 views

How to Create a Simple License Controlled WordPress Plugin

I have wordpress plugin and i need it to be a licenced controlled plugin (using any keys or other). is there any tutorials for the same?
0
votes
1answer
10 views

Wp_List_Table is showing as no class found named wp list table

I Developed a plugin I wanted to show data in wordpress table in admn area for which Wp_List_Table clas is used to do that I tried to use this but the problem is that it not being able to properly ...
0
votes
1answer
23 views

Need Help to make a logic for editing posts in Frontend

I have an issue, I'm creating classified website, so I have a login and a registration form and users can post their own adverts. They have account page where they can see their posted adverts, I'm ...
1
vote
0answers
21 views

Show/Hide 'add new user' custom fields in wordpress admin panel by click another field

I have created a custom field in the 'add new user' section using this hook "user_new_form" in the wordpress admin panel. Now I want to show or hide this field on the base of role. Can ...
0
votes
1answer
32 views

Redirection from a specific page for users logged in but not with membership

I am trying to redirect logged in user but not with a membership, from a specific page to product page. But it is showing error if I land on that page. Let's say join is the page with id 1867. Here is ...
0
votes
0answers
15 views

How to have profile URLs like /profile/username?

I am in a problem with creating a profile page.I have created a custom template for profile.I have url slug for profile demo.mysite.com/profile/ this is working file.But If i want to make username ...
-1
votes
0answers
35 views

publish_{$post_type} hook works only for posts and not for custom post types or pages

I'm trying to send push notification when any of posts, custom post types or pages is published. I'm getting enabled post types from the plugin settings and adding action via foreach loop in my class ...
0
votes
0answers
10 views

Filter Brands Add Per Category

I want a plugin or source code for woocommerce that creates a widget for the brand in the category page. The main requirement is that whenever I select a specific category then the brand list displays ...
-1
votes
0answers
18 views

the short code not working?

i'm testing the Short Code show Notice on front-end when user interact with the form . The logic simply as : user type in 2 test box ("Insert active code here :" & "Insert Order ID: ...

1
2 3 4 5
113