50. Quick Reference Card | Field Forge - Custom Fields, Built for Speed
Download Log in

50. Quick Reference Card

Developer Guide
TaskCode
Get field valueget_field( 'name', $post_id )
Echo field valuethe_field( 'name', $post_id )
Get all fieldsget_fields( $post_id )
Get options valueget_field( 'name', 'options' )
Get user valueget_field( 'name', 'user_5' )
Get term valueget_field( 'name', 'term_12' )
Update fieldupdate_field( 'name', $value, $post_id )
Delete fielddelete_field( 'name', $post_id )
Loop repeaterwhile ( have_rows('r') ) : the_row(); get_sub_field('f'); endwhile;
Get layout nameget_row_layout()
Get row indexget_row_index() (1-based)
Register options pagefieldforge_add_options_page( [...] )
Register PHP blockfieldforge_register_block_type( [...] )
Preload for custom queryfieldforge_preload( [1, 2, 3] )
Flush cacheFIELDFORGE_Performance::instance()->flush_all()
Delete all valuesFIELDFORGE_Field_Values::instance()->delete_all( $post_id )
Check FF activedefined( 'FIELDFORGE_VERSION' )
Check FF PROdefined( 'FIELDFORGE_PRO' ) && FIELDFORGE_PRO
Forge AI Assistant Online

Hi! I'm the Field Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs