Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 132259

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.

0 votes
0 answers
276 views

Sanitization and validation input fields - Settings API

I'm creating a plugin and I am a quite newbie. So I have difficulty to properly validate and sanitize input fields. This is my code: register_setting( 'wp_banner_settings_fields', 'wp_banner_settings_ …
upss1988's user avatar
0 votes
1 answer
203 views

Adding image upload in tag section - WordPress plugin development

I'm developing a WordPress plugin, and I'm trying to add an additional file field into the tag section. Check the screenshot: https://prnt.sc/22vkf1o I have successfully added the field, but I can't s …
upss1988's user avatar
0 votes
Accepted

Adding image upload in tag section - WordPress plugin development

I handle this with AJAX. Bellow is the solution. HTML: <label><?php _e( 'Featured Image', EG360_TEXT_DOMAIN ); ?></label> <div id="eg360_tax_image" style="float: left; margin-right: 10px;"> <img s …
upss1988's user avatar
0 votes
1 answer
91 views

Is there an option to execute javascript file only on plugin activation

I'm creating a custom plugin for WordPress and I'm trying to execute javascript file only once right after plugin activations. I'm using register_activation_hook() and wp_enqueue_script() to execute …
upss1988's user avatar
0 votes
Accepted

Is there an option to execute javascript file only on plugin activation

Here is the solution: register_activation_hook( __FILE__, 'rest_api_hook' ); /** * Runs only when the plugin is activated. */ function rest_api_hook() { /* Create data */ set_transient( ' …
upss1988's user avatar
0 votes
1 answer
1k views

Posts form with AJAX request - Plugin development

Trying to create a form with AJAX call on the Frontend where the users can submit a post. There is one text field, one textarea, and one file field. Here is the form: public function pp_html_template( …
upss1988's user avatar
0 votes
1 answer
24 views

Showing how many times is plugin activated or deactivated

I develop a custom plugin for my needs, and I stuck on one task. I need some kind of solution, to show on my website how many times is that plugin activated or deactivated on every site where will b …
upss1988's user avatar
0 votes
0 answers
92 views

Post form - AJAX won't upload featured image - Plugin development

I have a form for adding a post via AJAX and PHP. I have three fields. Text, textarea and file input field. Everything it's working, but it won't upload a featured image. When I remove the AJAX call, …
upss1988's user avatar
0 votes
1 answer
451 views

Settings API form - submit with AJAX

I'm creating a plugin where I have a dashboard that is done with Settings API. I'm trying to save data from that form via AJAX. Form: public function agy_dashboard_page() { ?> <form id="agy-fo …
upss1988's user avatar
1 vote
1 answer
326 views

How to test nonce with AJAX - Plugin development

I built a plugin, but now on end, I am not sure whether my nonce integrated correctly, and I'm not sure how to test them. Can anyone help me test it or let me know if the nonce is integrated correctly …
upss1988's user avatar