DoubleMule PHP Custom Functions Robot — Thesis Theme Conditional PHP Function Generator


PHP Code Bot Version — Thesis 1.8.5 / WordPress 3.4.1

Disclaimer — this tool is quite likely to play hob with your custom_functions.php file.

Use of this tool may cause PHP parsing or syntax errors — do maintain a backup of custom_functions.php and strive to remain calm. You are medicated for no idle purpose... keep those rattling bottles near to hand.

The DoubleMule PHP Function Generator Tool... What's This Thing... Do...?

Why, it helps you foals generate proper PHP syntax in basic functions, offers one-click hook selection, conditional output, and... for the proud, the few... may contribute to your foundation of knowledge — snicker-whinny... apologies, permit us these hearty brays — the Mules know you bipeds but all too well.

Instructions for use of the Thesis Theme Custom Functions PHP Code Engine...

The herd just knows you will fumble this... but off we go in futile attempt to aid you....

Hover your mouse here.

No, really, swoop over that link — it is a prime example of a hovering helper tip. Glory to all goodness, a pop-up! What won't they think of next, you ask? Move along...

Your chosen gods may believe in you. The herd does not... and as such, zero support of this tool is provided or promised, and its destructive capacity to raze your site, express or implied, is expressly implied. Warranties are for purchased parcels!

Now then, shall we move along with laying full waste to your custom_functions.php file? Yes, let's. Backup ready? No? Right then...



Custom Function PHP Code Generator for Thesis — THE CALF-SIMPLE EDITION

New to Thesis? Use this form for a simple function. Make choices from the three options below. Your every instinct will be wrong... think very hard... then do quite the opposite...

Your Function Name 


Your Function Actions 




Select the PHP Hook 










Custom Function PHP Code Generator for Thesis — EPIC MULE CONDITIONAL EDITION

Your Function Name  *

Condition Restriction 1

IF THIS IS... [more info]



ID Restriction 1 — Single  Condition: single ID number... (optional)



ID Restriction 1 — Array  Condition: multiple ID numbers, comma-delimited... (optional)



Condition Restriction 2 Secondary Conditional Statement. — provided you established your first condition above, you may establish another condition here... first comes OR/AND, then the secondary condition. [more info]

Once more... note that the following four fields are optional — use them only if you wish to have a secondary condition...

Select statement prefix for OR else AND of the secondary condition.



IF THIS IS... [more info]



ID Restriction 2 — Single  Same as before... a non-array single ID number goes below (optional)...



ID Restriction 2 — Array  Same as before... multiple values for an array go below (optional)... recall the necessary use of commas to separate ID numbers — 12,15,29 — like so.



  THEN...

Your Function Actions 


Select the PHP Hook 


*

Priority Action (optional) 

The priority action (optional) assigns output order to functions, including those from default Thesis functions and plugins... to your Function Actions above — enter a number between 1 and 50...