Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for getting term fields #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions includes/api/api-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* There is a 3rd parameter to turn on/off formating. This means that an image field will not use
* its 'return option' to format the value but return only what was saved in the database
*
* When getting fields for a specific taxonomy term, make $post_id a WP_Term object.
*
* @type function
* @since 3.6
* @date 29/01/13
Expand Down Expand Up @@ -254,6 +256,8 @@ function acf_maybe_get_sub_field( $selectors, $post_id = false, $strict = true )
* This function will return an array containing all the custom field values for a specific post_id.
* The function is not very elegant and wastes a lot of PHP memory / SQL queries if you are not using all the values.
*
* When getting fields for a specific taxonomy term, make $post_id a WP_Term object.
*
* @type function
* @since 3.6
* @date 29/01/13
Expand Down Expand Up @@ -294,6 +298,8 @@ function get_fields( $post_id = false, $format_value = true ) {
* This function will return an array containing all the custom field objects for a specific post_id.
* The function is not very elegant and wastes a lot of PHP memory / SQL queries if you are not using all the fields / values.
*
* When getting fields for a specific taxonomy term, make $post_id a WP_Term object.
*
* @type function
* @since 3.6
* @date 29/01/13
Expand Down