AnsPress_Admin::modify_answer_title( array $data )
Description #
Modify answer title before saving, in wp-admin.
Parameters #
- $dataarray (Required) Raw post data.
Source #
File: admin/anspress-admin.php
public static function modify_answer_title( $data ) { if ( 'answer' === $data['post_type'] ) { $data['post_title'] = esc_html( get_the_title( $data['post_parent'] ) ); } return $data; }
Expand full source code Collapse full source code View on GitHub: admin/anspress-admin.php:634
Add your comment