Skip to:
Content

BuddyPress.org

Changeset 9588


Ignore:
Timestamp:
03/03/2015 06:14:42 PM (9 years ago)
Author:
boonebgorges
Message:

Introduced 'bp_xprofile_admin_new_field_additional_settings' action.

This allows devs to inject additional settings into the field creation process,
without having to override the entire admin_new_field_html() method.

Props svenl77.
Fixes #6272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type.php

    r9486 r9588  
    351351                <div id="<?php echo esc_attr( "{$type}_more" ); ?>"></div>
    352352                <p><a href="javascript:add_option('<?php echo esc_js( $type ); ?>')"><?php esc_html_e( 'Add Another Option', 'buddypress' ); ?></a></p>
     353
     354                <?php do_action( 'bp_xprofile_admin_new_field_additional_settings', $current_field ) ?>
    353355            </div>
    354356        </div>
Note: See TracChangeset for help on using the changeset viewer.