| Name | Value (default or example) |
|---|---|
ABSPATH |
string(51)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/" |
ADMIN_COOKIE_PATH |
string(31) "/Web/wordpress/2.9.2cs/wp-admin" |
ARRAY_A |
string(7) "ARRAY_A" |
ARRAY_N |
string(7) "ARRAY_N" |
AUTH_COOKIE |
string(42) "wordpress_04adbd0d0ed74c398a98bca5b0dd94c2" |
AUTH_KEY |
string(27) "put your unique phrase here" |
AUTOSAVE_INTERVAL |
int(60) |
Category: good tip
-
Constants in WordPress
Published: On Saturday, April 10, 2010
Constants defaultly defined in WordPress 2.9.x. (There is 67 of them.) I can't remember the names. (So I'm sharing the cheatsheet.) -
Plugin development tip: Analyse your database queries
Published: On Friday, September 11, 2009
If you are an advanced plugin developer, you certainly know, you should keep number of db queries made by your plugin as small as possible. Getting the total number of database queries made when generating page is obvious:get_num_queries()returns the number.What is not so obvious, is how to display actual performed MySQL queries (strings) – which might be useful in various scenarios of performance optimization. WordPress is prepared for that task:
1. step: Add into your wp-config.php file this constant/value which enables remembering of all performed queries.
define ('SAVEQUERIES', true); -
Single wp-config for web and localhost
Published: On Saturday, August 8, 2009
Pretty usual routine is to develop site on localhost server and after some progress move it online. This transfer is complicated by three not-always-necessary steps.- database settings in wp-config.php file are different
- settings of home- and site- URLs are different (defaultly located in wp_options table)
- eventually the base-path in .htaccess file is different
First two points can be easily solved by using single wp-config. Especially is the benefit visible at the point #2, when you don't have to browse phpMyAdmin for that 2 particular rows, because these paths are written into wp-config.php file.
-
My little experience with the queue of scripts
Published: On Monday, February 16, 2009
– Sometimes you might be surprised, that WordPress/eventually a plugin (from an unknown reason) enqueued jQuery (not speaking about administration but public template!). De-queuing is simple: Callwp_deregister_script('jquery');beforewp_head();is run, where the scripts are usually printed out from the queue. -
Generating prev/next link-rel navigational elements
Published: On Monday, June 2, 2008
.[invalid] This feature got implemented with WP version 2.8 so information in this article isn't as useful as used to be, anymore…I would guess this is thing that no template can provide yet: navigational
linkelements (always insideheadpart). -
Which blogs about WordPress are worthy of man’s attention?
Published: On Saturday, May 31, 2008
I'm afraid this topic won't answer the question from the title. Rather than that, I hope some good tips will be shared in comments. What do you read (with pleasure)? -
Admin Drop Down Menu: more than just recommended plugin
Published: On Tuesday, April 1, 2008
Since WordPress 2.5 the header in administration takes more vertical space than ever before. The Admin DropDown Menu plugin has exist long time before 2.5, but only after recent WP release also the plugin was (totally) remade and his behaviour was radically improved.This image
illustratespoints how much the height of header changes during the time and environment :-).
-
Plugin development tip: Sign your code via HTML comments
Published: On Monday, January 7, 2008
I wanna suggest some rules for plugins development: making HTML code. Well, probably not rules, but something like good practices. Or so. -
Highlight admin’s comments easily
Published: On Tuesday, November 13, 2007
I've got know about a plugin today, that should help us with with highlighting comments written by the blog's author. „Why the heck should somebody use a plugin for such a simple operation?“ – I asked myself in the first moment. Yes, the plugin provides a few possibilities that can be called as non-trivial but people should not forget that this basic issue can be solved extremely easily and – without any plug-in. In fact, I'm wondering that this capability is not included in default theme, actually I'm not wondering, because Kubrick still misses much more than that. -
A tiny time-saver (not only) for plugin developers
Published: On Sunday, September 16, 2007
Some time ago I decided to release as open-source a small PHP script that I use for many moths. One moment sufficed to get a reply moving my script forward, so it had actually reached it’s new version a few hours after the release… aaand I’m almost sure it reached the high level of perfection so that I can publish it right here! ;)