AP_Update_Helper::post_activities( $_post )

Description #

Update post activities meta.

Source #

File: admin/update.php

	public function post_activities( $_post ) {
		global $wpdb;
		$activity = maybe_serialize( get_post_meta( $_post->ID, '__ap_activity', true ) );
		delete_post_meta( $_post->ID, '__ap_activity' );

		$wpdb->update( $wpdb->ap_qameta, [ 'activities' => $activity ], [ 'post_id' => $_post->ID ], [ '%s' ] );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment