- 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>
19 lines
539 B
PHP
Executable File
19 lines
539 B
PHP
Executable File
<?php
|
|
|
|
if ( ! class_exists( 'BWFAN_Model_Field_Groups' ) && BWFAN_Common::is_pro_3_0() ) {
|
|
class BWFAN_Model_Field_Groups extends BWFAN_Model {
|
|
static $primary_key = 'ID';
|
|
|
|
/**
|
|
* function to return group using term slug
|
|
**/
|
|
static function get_group_by_slug( $slug ) {
|
|
global $wpdb;
|
|
$query = "SELECT * from {table_name} where slug='" . $slug . "'";
|
|
$groupdata = self::get_results( $query );
|
|
$groupdata = is_array( $groupdata ) && ! empty( $groupdata ) ? $groupdata[0] : array();
|
|
|
|
return $groupdata;
|
|
}
|
|
}
|
|
} |