Make WordPress Core

Changes between Initial Version and Version 6 of Ticket #33858


Ignore:
Timestamp:
09/22/2015 10:56:23 PM (10 years ago)
Author:
johnbillion
Comment:

As per comments above. The existing filters mean this is already possible.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33858

    • Property Keywords reporter-feedback close added
    • Property Status changed from new to closed
    • Property Resolution changed from to worksforme
    • Property Milestone changed from Awaiting Review to
  • Ticket #33858 – Description

    initial v6  
    33
    44{{{
    5                         add_filter( 'option', 'acf_options_page' );
     5add_filter( 'option', 'acf_options_page' );
    66
    7                         function acf_options_page( $value, $option, $default ) {
    8                                 if ( $default == false ) {
    9                                         return get_field( $option, 'option' );
    10                                 }
     7function acf_options_page( $value, $option, $default ) {
     8        if ( $default == false ) {
     9                return get_field( $option, 'option' );
     10        }
    1111
    12                                 return $value;
    13                         }
     12        return $value;
     13}
    1414
    1515
    16                         get_option( 'field_from_acf' );
     16get_option( 'field_from_acf' );
    1717}}}