BuddyPress::activity_buttons()
Description #
Custom button for question and answer activities.
Source #
File: addons/buddypress/buddypress.php
public function activity_buttons() { if ( 'new_question' === bp_get_activity_type() ) { echo '<a class="button answer bp-secondary-action" title="' . esc_attr__( 'Answer this question', 'anspress-question-answer' ) . '" href="' . esc_url( ap_answers_link( bp_get_activity_secondary_item_id() ) ) . '">' . esc_attr__( 'Answer', 'anspress-question-answer' ) . '</a>'; } }
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:369
Add your comment