AnsPress_BP_Hooks::activity_buttons()
Description #
Custom button for question and answer activities.
Source #
File: addons/free/buddypress.php
public static 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/free/buddypress.php:294
Add your comment