Notifications::get_ref_title()
Description #
Return ref title.
Source #
File: addons/notifications/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'], array( '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/notifications/query.php:372
Add your comment