\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{L3Home} \pdfinfo{ /Title (wordpress-v5-functions.pdf) /Creator (Cheatography) /Author (L3Home) /Subject (WordPress v5 Functions Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{22388F} \definecolor{LightBackground}{HTML}{F1F2F8} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{WordPress v5 Functions Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{L3Home} via \textcolor{DarkBackground}{\uline{cheatography.com/35953/cs/18319/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}L3Home \\ \uline{cheatography.com/l3home} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 18th December, 2018.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}{\bf{Posts}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}Gets previous or next post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_adjacent\_post/"\}\}get\_adjacent\_post\{\{/popup\}\} `( b \$in\_same\_term, a|s \$excluded\_terms, b \$previous, s \$taxonomy )`} \tn % Row Count 6 (+ 5) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets first or last post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_boundary\_post/"\}\}get\_boundary\_post\{\{/popup\}\} `( b \$in\_same\_term, a|s \$excluded\_terms, b \$start, s \$taxonomy )`} \tn % Row Count 11 (+ 5) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets children of post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_children/"\}\}get\_children\{\{/popup\}\} `( m \$args, c \$output )`} \tn % Row Count 15 (+ 4) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets extended content from string.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_extended/"\}\}get\_extended\{\{/popup\}\} `( s \$post\_content )`} \tn % Row Count 19 (+ 4) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets next post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_next\_post/"\}\}get\_next\_post\{\{/popup\}\} `( b \$in\_same\_term, a|s \$excluded\_terms, s \$taxonomy )`} \tn % Row Count 24 (+ 5) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets next post link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_next\_posts\_link/"\}\}get\_next\_posts\_link\{\{/popup\}\} `( s \$label, i \$max\_page )`} \tn % Row Count 28 (+ 4) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Displays next post link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/next\_posts\_link/"\}\}next\_posts\_link\{\{/popup\}\} `( s \$label, i \$max\_page )`} \tn % Row Count 32 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post permalink.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_permalink/"\}\}get\_permalink\{\{/popup\}\} `( i|WP\_Post \$post, b \$leavename )`} \tn % Row Count 4 (+ 4) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Prints post permalink.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_permalink/"\}\}the\_permalink\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 8 (+ 4) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post excerpt.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_excerpt/"\}\}get\_the\_excerpt\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 12 (+ 4) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Displays post excerpt.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_excerpt/"\}\}the\_excerpt\{\{/popup\}\} `( )`} \tn % Row Count 16 (+ 4) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post thumbnail.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_post\_thumbnail/"\}\}get\_the\_post\_thumbnail\{\{/popup\}\} `( i|WP\_Post \$post, s|a \$size, s|a \$attr )`} \tn % Row Count 21 (+ 5) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets a post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_post/"\}\}get\_post\{\{/popup\}\} `( i|WP\_Post \$post, c \$output, s \$filter )`} \tn % Row Count 25 (+ 4) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post field.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_post\_field/"\}\}get\_post\_field\{\{/popup\}\} `( s \$field, i|WP\_Post \$post, s \$context )`} \tn % Row Count 30 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets parents of post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_post\_ancestors/"\}\}get\_post\_ancestors\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 4 (+ 4) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post mime type.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_post\_mime\_type/"\}\}get\_post\_mime\_type\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 8 (+ 4) % Row 17 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets post status.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_post\_status/"\}\}get\_post\_status\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 12 (+ 4) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post format.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_post\_format/"\}\}get\_post\_format\{\{/popup\}\} `( i|object \$post )`} \tn % Row Count 16 (+ 4) % Row 19 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Sets post format.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/set\_post\_format/"\}\}set\_post\_format\{\{/popup\}\} `( i|object \$post, s \$format )`} \tn % Row Count 20 (+ 4) % Row 20 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post edit link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_edit\_post\_link/"\}\}get\_edit\_post\_link\{\{/popup\}\} `( i|WP\_Post \$post, s \$context )`} \tn % Row Count 25 (+ 5) % Row 21 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets post delete link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_delete\_post\_link/"\}\}get\_delete\_post\_link\{\{/popup\}\} `( i|WP\_Post \$post, s \$deprecated, b \$force\_delete )`} \tn % Row Count 30 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 22 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets previous post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_previous\_post/"\}\}get\_previous\_post\{\{/popup\}\} `( b \$in\_same\_term, a|s \$excluded\_terms, s \$taxonomy )`} \tn % Row Count 5 (+ 5) % Row 23 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets previous post link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_previous\_posts\_link/"\}\}get\_previous\_posts\_link\{\{/popup\}\} `( s \$label )`} \tn % Row Count 9 (+ 4) % Row 24 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Displays previous post link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/previous\_posts\_link/"\}\}previous\_posts\_link\{\{/popup\}\} `( s \$label )`} \tn % Row Count 13 (+ 4) % Row 25 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets posts.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_posts/"\}\}get\_posts\{\{/popup\}\} `( a \$args )`} \tn % Row Count 17 (+ 4) % Row 26 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Does query have results remaining?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/have\_posts/"\}\}have\_posts\{\{/popup\}\} `( )`} \tn % Row Count 21 (+ 4) % Row 27 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Is this a single post?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/is\_single/"\}\}is\_single\{\{/popup\}\} `( i|s|a \$post )`} \tn % Row Count 25 (+ 4) % Row 28 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Is post flagged as sticky?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/is\_sticky/"\}\}is\_sticky\{\{/popup\}\} `( i \$post\_id )`} \tn % Row Count 29 (+ 4) % Row 29 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets ID of current loop item.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_ID/"\}\}get\_the\_ID\{\{/popup\}\} `( )`} \tn % Row Count 33 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 30 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Displays ID of current loop item.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_ID/"\}\}the\_ID\{\{/popup\}\} `( )`} \tn % Row Count 3 (+ 3) % Row 31 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Iterates the loop index.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_post/"\}\}the\_post\{\{/popup\}\} `( )`} \tn % Row Count 7 (+ 4) % Row 32 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets recent posts.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_recent\_posts/"\}\}wp\_get\_recent\_posts\{\{/popup\}\} `( a \$args, c \$output )`} \tn % Row Count 11 (+ 4) % Row 33 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Does post have an image?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/has\_post\_thumbnail/"\}\}has\_post\_thumbnail\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 15 (+ 4) % Row 34 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Does post have an excerpt?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/has\_excerpt/"\}\}has\_excerpt\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 19 (+ 4) % Row 35 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Does post have the specified format?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/has\_post\_format/"\}\}has\_post\_format\{\{/popup\}\} `( s|a \$format, i|WP\_Post \$post )`} \tn % Row Count 23 (+ 4) % Row 36 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}{\bf{Custom Posts}}} \tn % Row Count 24 (+ 1) % Row 37 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}Add a post status.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/register\_post\_status/"\}\}register\_post\_status\{\{/popup\}\} `( s \$post\_status, a|s \$args )`} \tn % Row Count 29 (+ 5) % Row 38 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Add a post type.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/register\_post\_type/"\}\}register\_post\_type\{\{/popup\}\} `( s \$post\_type, a|s \$args )`} \tn % Row Count 33 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 39 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Is this a post type archive?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/is\_post\_type\_archive/"\}\}is\_post\_type\_archive\{\{/popup\}\} `( s|a \$post\_types )`} \tn % Row Count 4 (+ 4) % Row 40 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets/displays post type archive title.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/post\_type\_archive\_title/"\}\}post\_type\_archive\_title\{\{/popup\}\} `( s \$prefix, b \$display )`} \tn % Row Count 9 (+ 5) % Row 41 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Add feature support to post type.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/add\_post\_type\_support/"\}\}add\_post\_type\_support\{\{/popup\}\} `( s \$post\_type, s|a \$feature )`} \tn % Row Count 14 (+ 5) % Row 42 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Remove feature support from post type.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/remove\_post\_type\_support/"\}\}remove\_post\_type\_support\{\{/popup\}\} `( s \$post\_type, s|a \$feature )`} \tn % Row Count 19 (+ 5) % Row 43 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Does post type support a feature?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/post\_type\_supports/"\}\}post\_type\_supports\{\{/popup\}\} `( s \$post\_type, s|a \$feature )`} \tn % Row Count 24 (+ 5) % Row 44 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Sets post type of post.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/set\_post\_type/"\}\}set\_post\_type\{\{/popup\}\} `( i \$post\_id, s \$post\_type )`} \tn % Row Count 28 (+ 4) % Row 45 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Does post type exist?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/post\_type\_exists/"\}\}post\_type\_exists\{\{/popup\}\} `( s \$post\_type )`} \tn % Row Count 32 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 46 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets attachment image.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_image/"\}\}wp\_get\_attachment\_image\{\{/popup\}\} `( i \$attach\_id, s|a \$size, b \$icon, s|a \$attr )`} \tn % Row Count 5 (+ 5) % Row 47 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets attachment link.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_link/"\}\}wp\_get\_attachment\_link\{\{/popup\}\} `( i|WP\_Post \$post, s|a \$size, b \$permalink, b \$icon, s \$text, a|s \$attr )`} \tn % Row Count 11 (+ 6) % Row 48 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets attachment mime type icon.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_image\_src/"\}\}wp\_get\_attachment\_image\_src\{\{/popup\}\} `( i \$attach\_id, s|a \$size, b \$icon )`} \tn % Row Count 16 (+ 5) % Row 49 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets attachment metadata.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_metadata/"\}\}wp\_get\_attachment\_metadata\{\{/popup\}\} `( i \$attach\_id, b \$unfiltered )`} \tn % Row Count 21 (+ 5) % Row 50 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets attachment thumbnail.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_thumb\_file/"\}\}wp\_get\_attachment\_thumb\_file\{\{/popup\}\} `( i \$post\_id )`} \tn % Row Count 26 (+ 5) % Row 51 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets attachment thumbnail URL.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_thumb\_url/"\}\}wp\_get\_attachment\_thumb\_url\{\{/popup\}\} `( i \$post\_id )`} \tn % Row Count 31 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 52 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets attachment URL.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_attachment\_url/"\}\}wp\_get\_attachment\_url\{\{/popup\}\} `( i \$attach\_id )`} \tn % Row Count 4 (+ 4) % Row 53 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Did page edit change slug?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_check\_for\_changed\_slugs/"\}\}wp\_check\_for\_changed\_slugs\{\{/popup\}\} `( i \$post\_id, WP\_Post \$post, WP\_Post \$post\_before )`} \tn % Row Count 9 (+ 5) % Row 54 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets count of posts with post type.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_count\_posts/"\}\}wp\_count\_posts\{\{/popup\}\} `( s \$post\_type, s \$permission )`} \tn % Row Count 13 (+ 4) % Row 55 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets mime types and file extensions.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_mime\_types/"\}\}wp\_get\_mime\_types\{\{/popup\}\} `( )`} \tn % Row Count 17 (+ 4) % Row 56 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets mime type icon.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_mime\_type\_icon/"\}\}wp\_mime\_type\_icon\{\{/popup\}\} `( s|i \$mime )`} \tn % Row Count 21 (+ 4) % Row 57 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets attachment thumbnail metadata.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_generate\_attachment\_metadata/"\}\}wp\_generate\_attachment\_metadata\{\{/popup\}\} `( i \$attach\_id, s \$file )`} \tn % Row Count 26 (+ 5) % Row 58 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Converts attachment to JS-ready format.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_prepare\_attachment\_for\_js/"\}\}wp\_prepare\_attachment\_for\_js\{\{/popup\}\} `( m \$attachment )`} \tn % Row Count 31 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 59 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Sets attachment metadata.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_update\_attachment\_metadata/"\}\}wp\_update\_attachment\_metadata\{\{/popup\}\} `( i \$attach\_id, array \$data )`} \tn % Row Count 5 (+ 5) % Row 60 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}{\bf{Bookmarks}}} \tn % Row Count 6 (+ 1) % Row 61 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}Gets a bookmark.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_bookmark/"\}\}get\_bookmark\{\{/popup\}\} `( i|stdClass \$bookmark, c \$output, s \$filter )`} \tn % Row Count 11 (+ 5) % Row 62 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets bookmarks.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_bookmarks/"\}\}get\_bookmarks\{\{/popup\}\} `( s|a \$args )`} \tn % Row Count 15 (+ 4) % Row 63 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets/displays all bookmarks.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_list\_bookmarks/"\}\}wp\_list\_bookmarks\{\{/popup\}\} `( s|a \$args )`} \tn % Row Count 19 (+ 4) % Row 64 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}{\bf{Other Post-Related Functions}}} \tn % Row Count 20 (+ 1) % Row 65 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}Adds meta box to screen.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/add\_meta\_box/"\}\}add\_meta\_box\{\{/popup\}\} `( s \$id, s \$title, f \$callback, s|a|WP\_Screen \$screen, s \$context, s \$priority, a \$callback\_args )`} \tn % Row Count 26 (+ 6) % Row 66 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Removes meta box from screen.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/remove\_meta\_box/"\}\}remove\_meta\_box\{\{/popup\}\} `( s \$id, s|a|WP\_Screen \$screen, s \$context )`} \tn % Row Count 31 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 67 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets loop item author.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_author/"\}\}get\_the\_author\{\{/popup\}\} `( )`} \tn % Row Count 4 (+ 4) % Row 68 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Displays loop item author.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_author/"\}\}the\_author\{\{/popup\}\} `( )`} \tn % Row Count 8 (+ 4) % Row 69 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets posts by loop item author.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_author\_posts/"\}\}get\_the\_author\_posts\{\{/popup\}\} `( )`} \tn % Row Count 12 (+ 4) % Row 70 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets loop item content.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_content/"\}\}get\_the\_content\{\{/popup\}\} `( s \$more\_link\_text, b \$strip\_teaser )`} \tn % Row Count 17 (+ 5) % Row 71 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Displays loop item content.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_content/"\}\}the\_content\{\{/popup\}\} `( s \$more\_link\_text, b \$strip\_teaser )`} \tn % Row Count 21 (+ 4) % Row 72 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets post title.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/get\_the\_title/"\}\}get\_the\_title\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 25 (+ 4) % Row 73 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Displays loop item title.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_title/"\}\}the\_title\{\{/popup\}\} `( s \$before, s \$after, b \$echo )`} \tn % Row Count 29 (+ 4) % Row 74 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Sanitizes loop item title.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/the\_title\_attribute/"\}\}the\_title\_attribute\{\{/popup\}\} `( s|a \$args )`} \tn % Row Count 33 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Post and Page Functions (cont)}} \tn % Row 75 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets excerpt of proper length.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_trim\_excerpt/"\}\}wp\_trim\_excerpt\{\{/popup\}\} `( s \$text )`} \tn % Row Count 4 (+ 4) % Row 76 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Gets a post revision.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_post\_revision/"\}\}wp\_get\_post\_revision\{\{/popup\}\} `( i|WP\_Post \$post, c \$output, s \$filter )`} \tn % Row Count 9 (+ 5) % Row 77 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets post revisions.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_post\_revisions/"\}\}wp\_get\_post\_revisions\{\{/popup\}\} `( i|WP\_Post \$post, a \$args )`} \tn % Row Count 14 (+ 5) % Row 78 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Is post a revision?} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_is\_post\_revision/"\}\}wp\_is\_post\_revision\{\{/popup\}\} `( i|WP\_Post \$post )`} \tn % Row Count 18 (+ 4) % Row 79 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Gets paginated link for archive.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/paginate\_links/"\}\}paginate\_links\{\{/popup\}\} `( s|a \$args )`} \tn % Row Count 22 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Category, Tag and Taxonomy Functions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}{\bf{Posts}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{bt\}\}Gets post categories.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_get\_post\_categories/"\}\}wp\_get\_post\_categories\{\{/popup\}\} `( i \$post\_id, a \$args )`} \tn % Row Count 6 (+ 5) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Sets post categories.} \tn \mymulticolumn{1}{x{8.4cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\{\{popup="https://developer.wordpress.org/reference/functions/wp\_set\_post\_categories/"\}\}wp\_set\_post\_categories\{\{/popup\}\} `( i \$post\_id, a|i \$post\_cats, b \$append )`} \tn % Row Count 11 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}