HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/admin-site-enhancements/classes/class-manage-robots-txt.php
<?php

namespace ASENHA\Classes;

/**
 * Class for Manage robots.txt module
 *
 * @since 6.9.5
 */
class Manage_Robots_Txt {

    /**
     * Maybe show custom robots.txt content
     *
     * @since 3.5.0
     */
    public function maybe_show_custom_robots_txt_content( $output, $public ) {

        $options = get_option( ASENHA_SLUG_U, array() );

        if ( array_key_exists( 'robots_txt_content', $options ) && ! empty( $options['robots_txt_content'] ) ) {

            $output = wp_strip_all_tags( $options['robots_txt_content'] );

        }

        return $output;

    }
    
}