*/ namespace RankMath\Paper; use RankMath\Helper; defined( 'ABSPATH' ) || exit; /** * BP_Group class. */ class BP_Group implements IPaper { /** * Retrieves the SEO title. * * @return string */ public function title() { return Paper::get_from_options( 'bp_group_title' ); } /** * Retrieves the SEO description. * * @return string */ public function description() { return Paper::get_from_options( 'bp_group_description' ); } /** * Retrieves the robots meta value. * * @return string */ public function robots() { $robots = []; if ( Helper::get_settings( 'titles.bp_group_custom_robots' ) ) { $robots = Helper::get_settings( 'titles.bp_group_robots' ); } return Paper::robots_combine( $robots, true ); } /** * Retrieves the advanced robots meta values. * * @return array The advanced robots meta values for the group. */ public function advanced_robots() { $robots = []; if ( Helper::get_settings( 'titles.bp_group_custom_robots' ) ) { $robots = Helper::get_settings( 'titles.bp_group_advanced_robots' ); } return Paper::advanced_robots_combine( $robots, true ); } /** * Retrieves the default canonical URL. * * @return array */ public function canonical() { return ''; } /** * Retrieves the default meta keywords. * * @return string */ public function keywords() { return ''; } }