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
4 views

Editor not displaying dynamically after clicking on the button

I am displaying the field dynamically in the admin panel. I have a button called Add more fields. The user can add the custom field dynamically. As of now, it's working but the issue is the editor not ...
0
votes
1answer
17 views

find author by product [closed]

I went to check if product belong to current vender to show edit and remove button Is there function as an example : product->get_vendor() thx
0
votes
1answer
32 views

update_post_meta doesnt update template

I want to set Blank template but this function doesn't do it.Whats the problem of this code? register_activation_hook( __FILE__, 'eafw_activate_insert_post' ); function eafw_activate_insert_post() { ...
0
votes
0answers
13 views

show custome page in frond-end woordpres

I'm new to WordPress I have a custom plugin with MySQL database I development page in the backend. all pages in the backend work normally. how can I show this page in front-end {theme name is invogue}...
1
vote
1answer
17 views

How to get plugin activate URL to use URL vars?

I need to get specific URL vars from the string of the plugin activate link when in plugins list view. /wp-admin/plugins.php?action=activate&plugin=move-blocks%2Fmove-blocks.php&plugin_status=...
1
vote
1answer
25 views

How to make a custom field as an editor in wordpress?

I have to add the custom field in the WordPress admin panel and I tried and it's displaying. Below is the screenshot. I am using the below code. function wordpress_add_metaboxes() { add_meta_box( ...
0
votes
0answers
9 views

Get Custom taxonomy parent with wordpress REST API

I have a custom taxonomy product_category , and it accepts parent / child relationship. The url: /wp-json/wp/v2/product_category shows me everything, Parent and Child. is it possible to add parameters ...
0
votes
1answer
13 views

How to add .ini file type to the plugin editor to read and edit?

Referring to /wp-admin/plugin-editor.php The plugin editor does not include .ini files and I use that file type in a plugin to create dynamic message constants. I want to be able to edit that file via ...
0
votes
0answers
10 views

Adding custom field to an existing frontend form

I am struggling on this for few days already. Hope anyone can assist me, thanks a lot! The theme already has a frontend form, but I wanna add a custom field on it, which is a expiry date of the post. ...
0
votes
0answers
8 views

Only my home page working

I didint change my host I only update plugin and wordpress and now after 1 day only my home page working if click other link a black window will open Any one can help me ? www.turkeyzillow.ir
0
votes
1answer
9 views

Do I lose translations when I change my Text domain for my plugin on wp.org?

In readme * Text Domain: advanced-responsive-video-embedder Do I lose translations when I change my language domain for my plugin on wp.org? I am annoyed by advanced-responsive-video-embedder ...
0
votes
0answers
3 views

How to send data according to the quantity of product in woo commerce? [closed]

I want to sell online social accounts with multiple types of categories like Gmail, FB, Insta with multiple types of subcategories like verified, not verified, 0-5 follower, 50-100, and want that when ...
0
votes
0answers
12 views

Show Total on Wordpress Product Page

I need to display the total on the product page when I change the quantity I'm using the plugin: yith woocommerce dynamic pricing to apply the product discount according to the quantity, but I need ...
1
vote
1answer
17 views

How to pull code snippet from functionality plugin?

I have a functionality plugin to extend an existing (original) plugin. (Before I was just forking, but after the update of the original plugin it became clear that it is not a good practice.) I saved ...
0
votes
0answers
10 views

What's the right way to tell if a block is rendered in the editor from a front-end/public script?

I'm writing a block that generates a skeleton via server-side render, and then populates the skeleton via React from a public-facing script (i.e., one that loads both on the front-end and the admin ...
0
votes
1answer
12 views

Best way to include and use Zoho SDK in a wordpress plugin

I'm trying to create a plugin that gonna let me use the Zoho API via the Zoho PHP SDK. So i created a WP Plugin called connect-zoho and enable it. Until here it's easy :) Then, by CLI i went in my ...
0
votes
0answers
20 views

Random string added end of the url blog page wordpress

https://demo.com/blog/page/2/?et_blog The random text appeared end of the URL I have to remove (?et_blog) that I am using Divi theme for WordPress.
1
vote
1answer
15 views

Issue with querying

I am having issues with my WordPress query. I am not the best coder at all, and I usually just get by learning here and there and editing/writing code as needed. I worked on a few things pretty much ...
4
votes
1answer
85 views

Why does WordPress create two transients with the same name when I specify timeout value?

Working with transients with a timeout, I seem to be getting two transients created, and I don't quite understand why. Looking at the source code on: https://developer.wordpress.org/reference/...
0
votes
1answer
21 views

I changed font of wordpress dashboard but it is slow!

my language is Persian and I wanted to change font of wordpress dashboard To be more pleasant. so I created a plugin that works easy. just changes the font of HTML elements of dashboard by CSS (font-...
0
votes
1answer
17 views

How to dynamically add template in Innerblock?

I am trying to dynamically add the template in my InnerBlock for that I have tried the following code: const edit = props => { var { className, attributes, ...
0
votes
0answers
16 views

Programmatically detect if wp-cron is disabled?

I have a plugin that relies on WP-Cron to carry out background tasks. I want to warn the user the plugin will not work when it is disabled. Is it possible within a plugin to programmatically check if ...
0
votes
0answers
9 views

How can I find the name of a function and replace with another name in a plugin?

I would like to replace a button name "CV Manager" with "Upload Resume". The button is part of a list of menu buttons in a user dashboard. It function is to direct candidates to ...
0
votes
0answers
59 views

HTMLCollection not counting right in editor? / for loop not working on elements in DOM

I'm migrating my front-end code for a plugin to React and ESNext, and am still new to all of this, but for some reason, this really simple for loop isn't executing on the admin edit page, but is fine ...
0
votes
0answers
20 views

What to do with the .git folder in a WordPress plugin during local development

I'm developing a WordPress plugin. I have initialized git (git init) in my plugin folder. This created a hidden .git folder in the root directory. I have to test some functionality for which I have to ...
0
votes
0answers
11 views

Looking for an add_action to add a custom field to all Woocommerce attribute terms [closed]

Unrelated question: is it ok to post similar question here as Stack Overflow? -- On the Woocommerce Product Attributes page, I have the following working for one Woocommerce attribute (called ...
0
votes
2answers
41 views

Data not insert and update through ajax and jQuery in admin page?

I made custom plugin and done crud operation, display all data in admin page, used ajax and jquery. Data successfully deleted but not inserted or updated. Data successfully pass through ajax but not ...
0
votes
0answers
10 views

Wordpress Add Media problem with adding media description in wp_editor() when used in bootstrap modal

I am working in a plugin that uses wp_editor() for the text editor and has Add Media button. In my plugin, I have used bootstrap modal to popup a form with the text editor created using wp_editor(). ...
0
votes
1answer
35 views

How to change WooCommerce loop product title HTML output in single product page and archive page

I'm currently working on designing my custom WooCommerce theme and wondering how I could change the HTML output of loop_product_title in single product page and in archive pages. I have less knowledge ...
0
votes
0answers
8 views

page can't redirect in Faq custom plugin in admin page

I was trying to delete row in admin page for Faq custom plugin which I made. I made custom Faq plugin and connected it through database. Get all data on front-end and in admin page of plugin. I wanted ...
1
vote
2answers
14 views

Register a sidebar in a Wordpress plugin

We have developed a Wordpress plugin to create a reservation engine. We use a shortcode to build the checkout process. This shortcode creates html. We would like to define a sidebar in this generated ...
1
vote
0answers
12 views

Custom user login page by creating a plugin

I am creating a custom user interface (separate from the WordPress user system) that relies heavy on values from a mysql database. I have figured out how to access these values, and with PHP files ...
0
votes
1answer
32 views

How to add custom table style for table block in gutenberg editor

As per the image, I would like to add extra style for the table block.
0
votes
0answers
20 views

How to modify product page in a woocommerce?

I am new in woocommerce. I have woocommerce custom theme which I downloaded from the Underscores.me. I have to change the layout of the product page so I found some link on the Stack Overflow to edit ...
0
votes
0answers
17 views

Getting wp_post objects from a single custom INNER JOIN SQL request

I have a custom plugin (written by me) that has, for reasons, got a custom table which contains a post_id field. It makes sense in context. What I currently do is SELECT post_id FROM table_name WHERE ...
1
vote
0answers
32 views

rewrite URL based on selected taxonomy for post page

I have a taxonomy called "group", and their values like "red", "blue", "green" (these are generating dynamic" no any fixed group value. during post ...
0
votes
0answers
15 views

Access remote SFTP server via Wordpress login?

I currently have an active Wordpress site and a running SFTP server that I manage locally. My Wordpress site is also hosted locally using LAMP. My question is if anyone knows of a way to integrate the ...
0
votes
1answer
15 views

register_meta not showing custom post type metabox data in rest api

I have added a custom post type and I want to expose the custom field value in the rest api. As per the docs register_meta can be used. I have created a custom post meta box using the wordpress way. ...
0
votes
1answer
44 views

Using AND and bracket grouping in SQL not working

I am trying to combine two conditions in a query but it isn't working. but running the conditions independently works. LEt me explain. When I run this query: SELECT DISTINCT SQL_CALC_FOUND_ROWS ...
0
votes
0answers
12 views

Make mobile urls different

My site amp url is different, AMP pages are like site.com/?amp i.e they have ?amp at the end... This is fine... But I also wants non amp URLs to be something like site.com/?nonamp i.e wanna add ?...
1
vote
1answer
35 views

Create a new post using rest api and save featured image using an external image url

I am trying to create a post using the rest API. Which I am able to do with a fetch request as below. OurPostData contains the title, content and URL of a featured image which is an external url ...
0
votes
0answers
14 views

Tagline is not showing in header [closed]

i have got internal server error so for this reason i had renamed the .htaccess file after that website is coming and everything is working fine but it is not showing the tagline in header i am using ...
0
votes
0answers
14 views

add_settings_error() not shown and settings validation not working (settings api)

I have an options page which is not added under the "settings" section, but via add_menu_page()/add_submenu_page() This page contains of html markup for my settings and at the end <div ...
0
votes
1answer
25 views

Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?

I am working on a plugin that gets image URLs from an API, some being PNG, JPG, and others JPG without an extension. I've been trying to use a combination of download_url() and media_handle_sideload() ...
0
votes
0answers
11 views

Update Block Attributes from Rest Api

I have created a REST API, which takes the parameter 'id' and returns the same value. Now what I want is to send this value to dynamic blocks that I've created. What I want to achieve is that if a ...
1
vote
0answers
8 views

Woocommerce - Convert Delivery method into a custom field

Woocommerce - Integration into Sage Accounts So currently we have available analysis field in sage, which means we can use customer fields in the basket to import into Sage Accounts, so for example ...
0
votes
2answers
55 views

Additional classes `undefined` after saving post in Gutenberg

The problem: whenever I type something in Advanced->Additional Classes in Gutenberg editor and save the page/post and refresh, those classes disappear. I logged props.className in edit function. It ...
0
votes
2answers
34 views

SMTP Error: Could not authenticate [closed]

In wordpress I am getting error SMTP Error: Could not authenticate. Here is the log file: Versions: WordPress: 5.6 WordPress MS: No PHP: 7.4.3 WP Mail SMTP: 2.5.1 Params: Mailer: smtp Constants: Yes ...
0
votes
0answers
10 views

Mails are not delivering in wordpress website deployed in Amazon AWS

I had deployed my wordpress website in Amazon AWS. Here i am facing one problem. mails are delivering from Contact form 7 and SMTP. Please find the below URL https://jasdental.in
0
votes
1answer
12 views

How to add support for caching plugins for my own plugin?

Is there a generic way to support caching plugins? For example to set a flag after you update an option that caching plugins watch? For example WP Super Cache has this: function wp_cache_clear_cache() ...

1
2 3 4 5
119