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 92756

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.

1 vote
1 answer
311 views

Is it smart to require_once wp-admin/includes/plugin.php when you need only one function fro...

This question is loosely related to Why some plugins are including wp-includes/plugin.php file? What I'm trying to figure out is, when is it smart to include this file, and when isn't it? I'm building …
Daan van den Bergh's user avatar
3 votes
Accepted

Is it smart to require_once wp-admin/includes/plugin.php when you need only one function fro...

So, the answer isn't as straightforward as I initially hoped. A quick test using memory_get_usage() on a local environment with only Twenty Sixteen enabled as the theme gives the following results: Me …
Daan van den Bergh's user avatar
0 votes
1 answer
46 views

Load specific page when a custom URL is hit

I'm building a plugin which will basically build a knowledge base dynamically, by retrieving categories, articles, etc. from an external API where all documentation is being kept. I've added a few cus …
Daan van den Bergh's user avatar
0 votes
Accepted

Load specific page when a custom URL is hit

Wow. The answer was ridiculously easy. All you need to specify in the rewrite rule is the pagename attribute. So, add_rewrite_rule('kb/(.+)/(.+)/?', 'index.php?pagename=docs-article&docs_category=$mat …
Daan van den Bergh's user avatar