- 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>
18 lines
524 B
PHP
Executable File
18 lines
524 B
PHP
Executable File
<?php
|
|
|
|
|
|
if ( ! class_exists( 'BWFAN_Model_Link_Metrics' ) ) {
|
|
|
|
class BWFAN_Model_Link_Metrics extends BWFAN_Model {
|
|
|
|
public static function get_link_metrics( $link_id, $cid ) {
|
|
global $wpdb;
|
|
|
|
$query = " SELECT * FROM {$wpdb->prefix}bwfan_link_metrics WHERE `link_id` = %d AND `contact_id` = %d";
|
|
|
|
return $wpdb->get_row( $wpdb->prepare( $query, $link_id, $cid ), ARRAY_A );//phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL
|
|
|
|
}
|
|
}
|
|
}
|