% Print WordPress name.
\NewDocumentCommand{\WP}{ s }{%
    \IfBooleanTF{#1}{\textsc{wp}\xspace}{WordPress\xspace}%
}

% Print ACF name.
\NewDocumentCommand{\acf}{ s }{%
    \IfBooleanTF{#1}{\textsc{acf}\xspace}{Advanced Custom Fields\xspace}%
}

% Print RHPZ name.
\NewDocumentCommand{\rhpz}{ s }{%
    \IfBooleanTF{#1}{\textsc{RHPZ}\xspace}{Romhack Plaza\xspace}%
}

% Show directory structure.
\NewDocumentCommand{\dir}{ s m }{%
    \textcolor{violet}{\textsl{#2\IfBooleanF{#1}{.php}}}\xspace%
}

\NewDocumentCommand{\sourceargs}{ m }{
    \textbf{Parameters}: \begin{itemize}%
         #1%
    \end{itemize}%
}
\NewDocumentCommand{\sourcereturn}{ m }{
    \textbf{Return}: \begin{itemize}%
                             #1%
    \end{itemize}%
}
\NewDocumentCommand{\sourceexample}{ m m m }{
    \textbf{Example}: %
    \lstinputlisting[firstnumber=1,linerange={#2-#3}]{#1}%
}