*/ protected function post_keys() { return array( 'title' => '_genesis_title', 'description' => '_genesis_description', 'canonical' => '_genesis_canonical_uri', 'noindex' => '_genesis_noindex', 'nofollow' => '_genesis_nofollow', ); } /** * Term IDs with TSF term settings, after a cursor. * * @param int $after Last processed ID. * @param int $limit Batch size. * @return int[] */ protected function candidate_term_ids( $after, $limit ) { return $this->term_ids_from_meta( array( self::TERM_KEY ), $after, $limit ); } /** * Raw values for one term. * * @param int $term_id Term ID. * @return array */ protected function read_term_raw( $term_id ) { $fields = get_term_meta( $term_id, self::TERM_KEY, true ); $fields = is_array( $fields ) ? $fields : array(); return array( 'title' => isset( $fields['doctitle'] ) ? $fields['doctitle'] : '', 'description' => isset( $fields['description'] ) ? $fields['description'] : '', 'canonical' => isset( $fields['canonical'] ) ? $fields['canonical'] : '', 'noindex' => isset( $fields['noindex'] ) ? $fields['noindex'] : '', 'nofollow' => isset( $fields['nofollow'] ) ? $fields['nofollow'] : '', ); } }