post_type ] ) && ! empty( $auto_options[ $post->post_type ] ) ) { $meta_value = get_post_meta( $post->ID, '_exclude_autotags', true ); echo '

' . "\n"; echo '
' . "\n"; echo '

' . "\n"; echo ''; } $taxonomies = get_object_taxonomies( $post->post_type ); if ( (int) SimpleTags_Plugin::get_option_value( 'auto_link_tags' ) == 1 && in_array( 'post_tag', $taxonomies ) ) { $meta_value = get_post_meta( $post->ID, '_exclude_autolinks', true ); echo '

' . "\n"; echo '
' . "\n"; echo '

' . "\n"; echo ''; } } /** * Save this settings in post meta, delete if no exclude, clean DB :) * * @param integer $object_id * * @return void * @author Amaury Balmer */ public static function save_post( $object_id = 0 ) { if ( isset( $_POST['_meta_autotags'] ) && $_POST['_meta_autotags'] == 'true' ) { if ( isset( $_POST['exclude_autotags'] ) ) { update_post_meta( $object_id, '_exclude_autotags', true ); } else { delete_post_meta( $object_id, '_exclude_autotags' ); } } if ( isset( $_POST['_meta_autolink'] ) && $_POST['_meta_autolink'] == 'true' ) { if ( isset( $_POST['exclude_autolinks'] ) ) { update_post_meta( $object_id, '_exclude_autolinks', true ); } else { delete_post_meta( $object_id, '_exclude_autolinks' ); } } } }