AnsPress_Notification_Query::get_ref_title()
Description #
Return ref title.
Source #
File: addons/free/notification/query.php
public function get_ref_title() { if ( isset( $this->object->ref ) ) { $verb_args = $this->verb_args( $this->object->noti_verb ); if ( in_array( $verb_args['ref_type'], [ 'post', 'comment' ], true ) && isset( $this->object->ref->post_title ) ) { return ap_truncate_chars( $this->object->ref->post_title, 80 ); } } }
Expand full source code Collapse full source code View on GitHub: addons/free/notification/query.php:359
Add your comment