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
1answer
22 views

Cannot view Custom Post Type no matter what I try

This is my code to register the post type: // Register new post type, User Conversations: b2bking_conversation add_action( 'init', array($this, 'b2bking_register_post_type_conversation'), 0 );...
1
vote
0answers
10 views

User Session and Stored Cookies not get removed

I am using below code to remove the user session, cookies etc, but its not working. Please help me to resolve this issues $userid = get_current_user_id(); //get current user id sleep(30); //to ...
1
vote
0answers
14 views

Wp_list_table search box not working for custom value from database

I am creating a from builder , so in wp list table i am unable to achieve search result from database for from builder entries, Please get attached link for example. Search submission : https://prnt....
2
votes
1answer
14 views

“The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working

Trying to create a table in the wpdb when activating the plugin I am working on and getting the error "The plugin generated 2694 characters of unexpected output…" I've been over the code and done ...
0
votes
0answers
10 views

How to enqueue react assets after build?

I created a react bundle with create-react-app in a custom plugin how do I add the builded assets to the frontend?
0
votes
0answers
18 views

How to remove WordPress Default Comment? not Facebook

I want to remove the Wordpress default comments system from my website but Wanted to keep Facebook Comments Only. Just like Scoopwhoop.com is doing! Thank you in Advance!
0
votes
1answer
36 views

Is file_get_contents() the only way for plugins reading local files OR does WP_Filesystem_Direct::get_contents() even work?

Background I'm developing a plugin for WordPress. I initially used file_get_contents() for two purposes: A remote file (which I changed to wp_remote_post()) A local file in the plugin dir (what this ...
1
vote
1answer
19 views

Notice: Trying to get property 'term_id' of non-object

I receive the error on taxonomy page in wp-admin.Before this error, I had problem that couldnt add the taxonomy to menu because of my taxonomy code.I fixed the code then the current error became.So, ...
1
vote
0answers
11 views

New databes tables with - WooCommerce - for developers [closed]

I hope you are healthy and stronger than the virus. I am really interest to start coding WP and WC. I've been coding PHP for 2,5 years and started two weeks ago with WordPress. I'm reading the ...
1
vote
0answers
10 views

How can I prevent my plugin go development trunk [closed]

I am a WordPress plugin developer, I SVNed the latest plugin then the translation page goes like below: How can I prevent the "Development" version to appare? I just want a stable version here. In ...
-3
votes
0answers
10 views

Invalid Menu Items [duplicate]

https://youtu.be/lME3lY-kNbA I told the question on youtube video also I tell the question here again: I cant add my taxonomies to menu except 000 taxonomy.I dont know why but it works: the error :...
-2
votes
1answer
31 views

Invalid Menu Items

I registered a taxonomy named districts, but when I add districts to nav menus, the nav menu items are invalid! Here is the code that registers the taxonomy: function masallah() { // Add new ...
1
vote
1answer
20 views

How to make a customize role and view a specific plugins base on that role?

it there anyone can suggested or give me an idea. i created a customize WordPress plugin. it was called "Spark 3cx client" First when i login using "admin" account. I can view or access the admin ...
-2
votes
0answers
24 views

How can i build a simple review system in wordpress without plugin?

I was searching for a simple plugin in order to display a rating system on one of my custom post type. I was going to ask the question here, but in the meantime, i found a solution, so I thought i ...
1
vote
0answers
7 views

Activate User in Code (BuddyPress+bbpress)

It's insane, but my client wants to suppress the activation email that BuddyPress sends out for activation - she feels that the double-optin that the mass email service sends is 'enough' - that was ...
0
votes
1answer
25 views

Foreach Loop Of Post Types With Nested If Else If Not Completing Process

When my plugin is updated I am trying to write new values to the database. I am running through the post types and if it is Page Product or Post I want to place INDEX in to the DB. Else I want to ...
-1
votes
0answers
14 views

Dynamically add editable fields in the wordpress editor using elementor

I want to achieve the possibility of adding dynamically as many fields of a certain element type as I need in a page template with Elementor Plugin and make this fields editable individually as well. ...
0
votes
0answers
6 views

Allow user to create only one single custom post type for manage homepage contents

According to the info I have found in this old answer, I would ask if is it possible to manage the index informations using a single custom post type. I know about the possibility to use an home.php ...
0
votes
0answers
7 views

How to add user based tab to media upload manager with custom set of images?

By following the below link, I am able to create user-based tabs. https://wordpress.stackexchange.com/questions/185271/how-to-add-new-tab-to-media-upload-manager-with-custom-set-of-images I need to ...
0
votes
0answers
17 views

What does excerpt depend on?

I wrote a post plugin for elementor page builder.Excerpt overflows to my country flags.How can I avoid the overflowing? On this website, except overflows: http://www.oneclick.deniz-tasarim.site/ On ...
0
votes
1answer
29 views

plugin_dir_path wrong url

echo "background-image: url(" . plugin_dir_path( __FILE__ ) . '/images/bag.png);'; output: url(/home/deniztas/oneclick.deniz-tasarim.site/wp-content/plugins/my_post_plugin-bag2-solda/widgets//images/...
1
vote
1answer
18 views

how to get up row in wordpress with wpdb

I want to compare two prices in my database. I get a row with any id: $price1 = $wpdb->get_row( "SELECT * FROM $wpdb->prices WHERE id = 10" ); I want to get up the row from this table means I ...
-2
votes
0answers
13 views

Content Locker development

how to develop a custom content locker? I want a content locker, an shortcode must have to execute before unlock the content.
0
votes
0answers
30 views

Two instances of Wordpress Customizer

I have a question about the Wordpress Customizer. The idea: Developing a framework based on the WP Customizer core, like an extension that adds new features. The result: The basic WP Customizer that ...
1
vote
1answer
30 views

what are the checksums surrounding keywords in the SQL generated by WP_Query and do I need to use them too?

I am using posts_join and posts_where filters to include a custom table in a query. this page says I should "use whatever WordPress did to search the post title field to search my custom table fields ...
0
votes
0answers
28 views

cURL error 7: Failed to connect to XXX.XXX.X.XXX port 3000: Connection timed out - wp_remote_post

I'm using wp_remote_post() for POST WordPress posts to external api, but it shows below error: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: ...
0
votes
1answer
35 views

How to let user store a file in plugin directory but not have it get deleted on update?

So I would like to allow the user to customize the css for my plugin, but if a user creates a css file and then places it in my plugin directory, the file gets deleted the next time plugin is updated ...
0
votes
0answers
33 views

Custom Plugin Database relations

I will make custom page for my plugin.As a example, in this video, global $wpdb is used to call variables of sing-up form.How can I call my own plugin's variables? I dont know database info yet.Also ...
0
votes
0answers
16 views

How to create a post selector using TinyMCE editor.PluginManager in WordPress?

I was trying to create a plugin for my site. I added a MCE button to WordPress editor and create a query to generate post list but can't combine both to create a post selector which opens on click at ...
1
vote
1answer
43 views

Adding custom end points, No error line

I have been trying to implement a custom end point that inserts data from my mobile application into this database. However, I cant seem to find the correct way to do it. Some places used #wpdp->...
0
votes
0answers
12 views

Create Seo-Friendly URL using add_rewrite_rule hook

http://builderux.com/neighborhood/detail/4978 this url is working but I want to show the 4978 id's name instead of 4978 id.Look like as below url . http://builderux.com/neighborhood/BORDEAUX Please ...
0
votes
0answers
23 views

Is there any way to get post meta from publish_post hook?

I want a post meta of the published post, below is the code but I didn't get it. Appreciate if anyone can help me here: class BarrioBlog { function __construct() { add_action( '...
-1
votes
1answer
19 views

How keep woocommerce users separeted in multisite install and keep admins on network

I'm trying to use a multisite install to keep a single php and database source but I need to use woocommerce separated in the websites, allowing the sites to have they clients separated at same time ...
0
votes
1answer
56 views

SimpleXML is not working with xml response from external api

I am doing my first steps with WordPress_plugins/PHP and just faced my first wall. Will try to do my best in order to explain the problem, please give me some discount. I am creating a plugin for ...
0
votes
0answers
18 views

get Mobile phone value from contact form 7

I am using contact form 7 plugin for SMS integration I using this script but its is not working can someone help me. add_action('wpcf7_mail_sent', function ($cf7) { $submission = WPCF7_Submission:...
0
votes
0answers
14 views

How to register meta field with checkbox to REST API with default value true?

I have a meta field with checkbox, it has by default checked value, but when I register it to REST API my checkbox become unchecked. How can I get it checked by default? Here is my code for metabox: ...
0
votes
0answers
18 views

How do I specify where to save the debug.log?

According to the documentation cited below I should be able to add a path to save the debug.log at but it does not seem to be working for me. https://wordpress.org/support/article/debugging-in-...
0
votes
0answers
45 views

ACF relationship on user profile page used for allowed access

I have an ACF relationship field set to show on the User Role (user's profile page). From there we can select what forums the user can access, if a forum is not given to a user then access to that ...
-1
votes
0answers
24 views

able to login wp-admin for the put the vat tax

function wc_tax_exempt_unlogged() { // Getting user data for logged users if( is_user_logged_in() ){ $current_user = wp_get_current_user(); $current_user_id = $current_user-&...
0
votes
1answer
31 views

Gutenberg blocks error: Each child in a list should have a unique “key” prop

I am learning building custom Gutenberg blocks in WordPress, Since reactjs is a new language to me, I would appreciate some help with the error below. Its a warning in the console Warning: Each child ...
0
votes
0answers
18 views

how to remove product from mini cart without refreshing the page

Every time if i click the cancel button page is refreshing
2
votes
1answer
54 views

Self-hosted plugin update problems

I'm self-hosting a premium Wordpress plugin. I'm trying to get update info to the install of the plugin by having the plugin contact one of my web servers, exchanging JSON info. It all works exactly ...
0
votes
1answer
42 views

How to use Datatable with Ajax when creating plugin on WordPress?

Hello i wanted to make a plugin with DataTable integration but i have a problem on calling ajax in url. this is my plugin directory look like. in index.php i use admin_enqueue_scripts for datatable ...
0
votes
0answers
11 views

Send push notifications if a custom theme update is available

I'm using a plugin to manage the update of my custom wordpress released themes and plugins. I will learn from this interesting article how to create a plugin that will do the same of the plugin ...
0
votes
3answers
46 views

Dont display post with no content

In my blog index page I do not want to show posts which has empty content but only title (How does filter the_posts work?) . I am looking at 'the_post' hook which seems to fire inside the loop . So , ...
0
votes
1answer
16 views

How to identify which php file a plugin is using on page load?

I need to make some custom adjustments to a 3rd party plugin. My plan is to use PHPstorm and xdebug to dive into the plugin as it loads/operates on a product page so I can find out how it works and ...
0
votes
0answers
43 views

error while placing order (you are not authorized to access this resource)

There is an error in the Woocommerce order register where the reason is not clear, can anyone help? error while placing order (you are not authorized to access this resource). I looking forward to ...
0
votes
1answer
24 views

How to access all array values from do_action_ref_array()?

I am trying understanding how do_action_ref_array() works and the difference between do_action() and do_action_ref_array() . I went through (Difference between do_action_ref_array() and do_action()) ...
0
votes
1answer
21 views

dashboard widget form not submit mails

I'm adding for the first time a wordpress dashboard widget. I'm creating a simple form to give the user the ability to send support request directly from wp dashboard. I'm not sure if all the code is ...
-1
votes
0answers
26 views

timeout in wp_remote_get

i am calling an api and i want to delay the response i am using timeout but its not working function post_shortcode($atts = [], $content = null){ $response = wp_remote_retrieve_body(wp_remote_get(...

1
2 3 4 5
108