Activity_Helper::get_activity( integer $activity_id )
Description #
Get activity by activity_id.
Parameters #
- $activity_idinteger (Required) Activity id.
Source #
File: includes/class/class-activity-helper.php
public function get_activity( $activity_id ) { global $wpdb; if ( empty( $activity_id ) ) { return false; } return $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->ap_activity WHERE activity_id = %d", $activity_id ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery }
Expand full source code Collapse full source code View on GitHub: includes/class/class-activity-helper.php:411
Add your comment