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 answers only not deleted user 39152

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

Where to store Plugin specific information in the database

Store it in wp_options() using update_option() and retrieve it with get_option(): update_option( 'my_plugin_timestamp', $value ); $value = get_option( 'my_plugin_timestamp' );
Jacob Peattie's user avatar
2 votes
Accepted

settings_fields() doesn't work for other roles except admin

To change the capability required to save settings you can use the option_page_capability_{$option_page} filter, where {$option_page} is the value passed to settings_field() on your settings page. So …
Jacob Peattie's user avatar
1 vote

Do blocks replace plugins in WordPress 5?

No. As described in the documentation: Plugins are packages of code that extend the core functionality of WordPress. WordPress plugins are made up of PHP code and other assets such as images, …
Jacob Peattie's user avatar
2 votes
Accepted

js/css updating when making a plugin

This isn't really a WordPress issue. It's just how browsers cache styles and scripts so that it doesn't need to download them again. Renaming the file means the browsers treat them as new files and re …
Jacob Peattie's user avatar
1 vote
Accepted

Return conditional category in load_posts_by_ajax

The AJAX handler doesn't know anything about the page or context that the request was made from, so you're going to need to send the category along with AJAX request, alongside the page number. So y …
Jacob Peattie's user avatar
0 votes
Accepted

When does global/main code of plug execute?

Plugins are only loaded once per request. Plugins are loaded with this code: // Load active plugins. foreach ( wp_get_active_and_valid_plugins() as $plugin ) { wp_register_plugin_realpath( $plug …
Jacob Peattie's user avatar
0 votes
Accepted

How can I create a wp plugin with this code

Just create the same files as in the tutorial, but on your computer, then zip them. That's all a plugin zip is.
Jacob Peattie's user avatar
0 votes

Can display plugin without shortcode?

You would need to use a hook, but there’s no standard hook after the header, so one would need to be provided in the theme. But then your plugin would only support that particular theme. An alternativ …
Jacob Peattie's user avatar
2 votes
Accepted

How to extend a plugin like we do a theme?

There’s no standard method apart from hooks, and it’s up to the developer of the original plugin to add and support these. If the plugin is extendable they will have developer documentation (LearnDash …
Jacob Peattie's user avatar
1 vote

Plugins and caching

Well this is the whole point of cache plugins. Caching plugins let the page load normally, with all plugins, and then saves the result as a static HTML page. Future requests for a specified period of …
Jacob Peattie's user avatar
3 votes
Accepted

Custom plugin icon not showing up

The dev docs are for adding an icon that the .org repository can use. You'll note that the relevant docs are part of the "The WordPress.org Plugin Directory" section. To display an icon on the updates …
Jacob Peattie's user avatar
2 votes
Accepted

a href adds default URL with the given echo URL

You’ve forgotten the https://. This will happen in any HTML where you don’t add the protocol to a URL. Nothing to do with WordPress. However, you should use esc_url() when outputting user entered valu …
Jacob Peattie's user avatar
0 votes

How to enqueue style in WordPress plugin from theme files?

Based on your comments in response to others, you want to register a stylesheet in your theme, and enqueue it from the plugin. In that case, you can call wp_enqueue_script() with just the handle you u …
Jacob Peattie's user avatar
2 votes

AJAX form post returns 0

The check_ajax_referer() function will die() if the check fails, which is why you won't see anything after it, and the reason it's failing is that the action names given to wp_create_nonce() and check …
Jacob Peattie's user avatar
1 vote
Accepted

Enqueueing common php scripts in a plugin

No, it just means it's used by many plugins, not that Core includes it. Many of the functions in that library seem to use the JsonLdProcessor class that is also in that library, I'd check for that be …
Jacob Peattie's user avatar

1
2 3 4 5
9
15 30 50 per page