ap_question_title_with_solved_prefix( boolean|integer $question_id = false )
Description #
Return question title with solved prefix if answer is accepted.
Parameters #
- $question_idboolean | integer (Optional) Question ID. Default value: false
Source #
File: includes/functions.php
function ap_question_title_with_solved_prefix( $question_id = false ) { if ( false === $question_id ) { $question_id = get_question_id(); } $solved = ap_have_answer_selected( $question_id ); if ( ap_opt( 'show_solved_prefix' ) ) { return ( $solved ? __( '[Solved] ', 'anspress-question-answer' ) : '' ) . get_the_title( $question_id ) . ' '; } return get_the_title( $question_id ); }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:962
Add your comment