post_type ) ) { return; } // Auto terms for this CPT ? if(1 === (int) SimpleTags_Plugin::get_option_value( 'active_auto_terms' )){ $meta_value = get_post_meta( $post->ID, '_exclude_autotags', true ); echo '

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

' . "\n"; echo ''; } if(1 === (int) SimpleTags_Plugin::get_option_value( 'active_auto_links' )){ $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 WebFactory Ltd */ public static function save_post( $object_id = 0 ) { if ( isset( $_POST['_meta_autotags'] ) && 'true' === $_POST['_meta_autotags'] ) { 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'] ) && 'true' === $_POST['_meta_autolink'] ) { if ( isset( $_POST['exclude_autolinks'] ) ) { update_post_meta( $object_id, '_exclude_autolinks', true ); } else { delete_post_meta( $object_id, '_exclude_autolinks' ); } } } }