function mb_get_user_replies_title() { return apply_filters('mb_get_user_replies_title', mb_get_reply_label('name')); }
/** * Adds the placeholder text to the editor textarea. * * @since 1.0.0 * @access public * @param string $html * @return string */ function mb_reply_the_editor_filter($html) { remove_filter('the_editor', 'mb_reply_the_editor_filter'); return str_replace('<textarea', '<textarea placeholder="' . mb_get_reply_label('mb_form_content_placeholder') . '"', $html); }
function mb_get_edit_page_title() { $title = ''; if (mb_is_forum_edit()) { $title = sprintf(mb_get_forum_label('mb_form_edit_item'), mb_get_forum_title()); } elseif (mb_is_topic_edit()) { $title = sprintf(mb_get_topic_label('mb_form_edit_item'), mb_get_topic_title()); } elseif (mb_is_reply_edit()) { $title = sprintf(mb_get_reply_label('mb_form_edit_item'), mb_get_reply_title()); } elseif (mb_is_user_edit()) { $title = __('Edit User', 'message-board'); } return apply_filters('mb_get_edit_title', $title); }
function mb_reply_label($label) { echo mb_get_reply_label($label); }