Some php functions useful in wp projects.