ptlojas
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [BotWriter – AI Writer & SEO Content Generator] llms.txthi,
- Does
/llms.txtshow BotWriter content, Agentimus content, or an error? BotWriter content (but i need Agentimus content,) - Does temporarily disabling BotWriter make Agentimus’s expected content appear? if i disable, Agentimus content
- If possible, please share the URL to your
/llms.txtpage or a screenshot of its contents.
one exemple: https://otreinador.net/llms.txt
I came up with a temporary solution by adding this code:
add_action( ‘wp_loaded’, function() {
// 1. Inspeciona e remove a funcao anonima do hook parse_request if ( isset( $GLOBALS['wp_filter']['parse_request'] ) ) { foreach ( $GLOBALS['wp_filter']['parse_request']->callbacks as $priority => $callbacks ) { foreach ( $callbacks as $hash => $callback ) { if ( isset( $callback['function'] ) && $callback['function'] instanceof Closure ) { $ref = new ReflectionFunction( $callback['function'] ); if ( strpos( $ref->getFileName(), 'llmstxt.php' ) !== false ) { unset( $GLOBALS['wp_filter']['parse_request']->callbacks[ $priority ][ $hash ] ); } } } } } // 2. Inspeciona e remove a funcao anonima do hook template_redirect (prioridade 0) if ( isset( $GLOBALS['wp_filter']['template_redirect']->callbacks[0] ) ) { foreach ( $GLOBALS['wp_filter']['template_redirect']->callbacks[0] as $hash => $callback ) { if ( isset( $callback['function'] ) && $callback['function'] instanceof Closure ) { $ref = new ReflectionFunction( $callback['function'] ); if ( strpos( $ref->getFileName(), 'llmstxt.php' ) !== false ) { unset( $GLOBALS['wp_filter']['template_redirect']->callbacks[0][ $hash ] ); } } } }}, 1 );
- Does
Viewing 1 replies (of 1 total)