Skip to:
Content

BuddyPress.org

Changeset 9548


Ignore:
Timestamp:
02/24/2015 03:22:45 AM (7 years ago)
Author:
tw2113
Message:

Adds hooks documentation for class-bp-button.php.

See #5940.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-button.php

    r9486 r9548  
    232232        $this->contents = $before . '<a'. $this->link_href . $this->link_title . $this->link_id . $this->link_rel . $this->link_class . '>' . $this->link_text . '</a>' . $after;
    233233
    234         // Allow button to be manipulated externally
     234        /**
     235         * Filters the button based on class parameters.
     236         *
     237         * This filter is a dynamic filter based on component and component ID and
     238         * allows button to be manipulated externally.
     239         *
     240         * @since BuddyPress (1.2.6)
     241         *
     242         * @param string    $contents HTML being used for the button.
     243         * @param BP_Button $this     Current BP_Button instance.
     244         * @param string    $before   HTML appended before the actual button.
     245         * @param string    $after    HTML appended after the actual button.
     246         */
    235247        $this->contents = apply_filters( 'bp_button_' . $this->component . '_' . $this->id, $this->contents, $this, $before, $after );
    236248    }
Note: See TracChangeset for help on using the changeset viewer.