Files
roi-theme/wp-content/plugins/thrive-ultimatum/thrive-dashboard/inc/smart-site/classes/content-set/class-search-result-rule.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

40 lines
603 B
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
namespace TVD\Content_Sets;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class Search_Result_Rule
*
* @package TVD\Content_Sets
* @project : thrive-dashboard
*/
class Search_Result_Rule extends Rule {
/**
* @return bool
*/
public function is_valid() {
return true;
}
/**
* Returns true if the active query is for a search.
*
* @param \WP_Post|\WP_Term $post_or_term
*
* @return bool
*/
public function matches( $post_or_term ) {
return is_search();
}
}