Usage Tracking Sync Required.
Your site needs a one-time synchronization to build snippet usage records. This helps in displaying accurate usage statistics.

'; } $_GET = stripslashes_deep($_GET); $xyz_ihs_message = $search_name_db=$search_name=''; if(isset($_GET['xyz_ihs_msg'])){ $xyz_ihs_message = intval($_GET['xyz_ihs_msg']); } if($_POST) { if(isset($_POST['search'])) { if(!isset($_REQUEST['_wpnonce'])||!wp_verify_nonce($_REQUEST['_wpnonce'],'snipp-manage_') ){ wp_nonce_ays( 'snipp-manage_' ); exit; } } // if(isset($_POST['textFieldButton2'])) // { // if(!isset($_REQUEST['_wpnonce'])||!wp_verify_nonce($_REQUEST['_wpnonce'],'bulk_actions_ihs') ){ // wp_nonce_ays( 'bulk_actions_ihs' ); // exit; // } // } if (isset($_POST['apply_ihs_bulk_actions'])){ if (isset($_POST['ihs_bulk_actions_snippet'])) { if(!isset($_REQUEST['_wpnonce'])||!wp_verify_nonce($_REQUEST['_wpnonce'],'bulk_actions_ihs') ) { wp_nonce_ays( 'bulk_actions_ihs' ); exit; } $ihs_bulk_actions_snippet=intval($_POST['ihs_bulk_actions_snippet']); $xyz_ihs_snippet_ids = []; if (isset($_POST['xyz_ihs_snippet_ids']) && is_array($_POST['xyz_ihs_snippet_ids'])) $xyz_ihs_snippet_ids = array_map('intval', $_POST['xyz_ihs_snippet_ids']); $xyz_ihs_pageno = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1; if (empty($xyz_ihs_snippet_ids)) { wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=8&pagenum='.$xyz_ihs_pageno)); exit(); } if ($ihs_bulk_actions_snippet==2)//bulk-delete { foreach ($xyz_ihs_snippet_ids as $snippet_id) { $wpdb->query($wpdb->prepare( 'DELETE FROM '.$wpdb->prefix.'xyz_ihs_short_code WHERE id=%d',$snippet_id)) ; } wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=3&pagenum='.$xyz_ihs_pageno)); exit(); } elseif ($ihs_bulk_actions_snippet==0)//bulk-Deactivate { foreach ($xyz_ihs_snippet_ids as $xyz_ihs_snippetId) $wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('status'=>2), array('id'=>$xyz_ihs_snippetId)); wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=4&pagenum='.$xyz_ihs_pageno)); exit(); } elseif ($ihs_bulk_actions_snippet==1)//bulk-activate { foreach ($xyz_ihs_snippet_ids as $xyz_ihs_snippetId) $wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('status'=>1), array('id'=>$xyz_ihs_snippetId)); wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=4&pagenum='.$xyz_ihs_pageno)); exit(); } elseif ($ihs_bulk_actions_snippet==-1)//no action selected { wp_safe_redirect(admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=7&pagenum='.$xyz_ihs_pageno)); exit(); } } } } if($xyz_ihs_message == 1){ ?>
HTML Snippet successfully added.    Dismiss
HTML Snippet not found.    Dismiss
HTML Snippet successfully deleted.    Dismiss
HTML Snippet status successfully changed.    Dismiss
HTML Snippet successfully updated.    Dismiss

HTML Snippet successfully updated.    

Please select an action to apply.    Dismiss
Please select at least one snippet to perform this action.    Dismiss

HTML Snippets

0) { $strInsertionMethod=" AND insertionMethod=$insertionMethod"; } $entries = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."xyz_ihs_short_code WHERE title like '%".$search_name_db."%'".$strInsertionMethod." ORDER BY $field $order LIMIT $offset,$limit" ); ?> "'>
With Selected :
Snippet Placement 
0 ) { $count=1; $class = ''; foreach( $entries as $entry ) { $class = ( $count % 2 == 0 ) ? ' class="alternate"' : ''; $snippetId=intval($entry->id); ?> > status == 2){ $stat1 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=1&pageno='.$pagenum); ?> status == 1){ $stat2 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=2&pageno='.$pagenum); ?>
Tracking Name Snippet Placement Placement Details Status Action
title); ?> status == 2) { $placement_text = 'NA'; } else { /* AUTOMATIC PLACEMENT */ if ($entry->insertionMethod == 1) { $placement_text = 'Automatic'; } /* SHORTCODE PLACEMENT */ elseif ($entry->insertionMethod == 2) { $placement_text = 'Shortcode ' . '' . '[xyz-ihs snippet="' . esc_html($entry->title) . '"]' . '' . '' . ''; } } echo $placement_text; ?> status == 2) { echo '—'; } elseif ($entry->insertionMethod == 1) { if (!empty($entry->insertionLocation)) { echo esc_html( xyz_ihs_get_insertion_location_label($entry->insertionLocation) ); } else { echo '—'; } } elseif ($entry->insertionMethod == 2) { $post_count=0; $post_count = $wpdb->get_var($wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}xyz_ihs_usage WHERE snippet_id = %d", $entry->id )); if ($post_count > 0 && (get_option('xyz_ihs_show_snippet_usage')==1)) { echo 'Used in ' . $count . ' posts/pages'; }else { if(get_option('xyz_ihs_show_snippet_usage')!=1) echo 'Hidden'; else echo 'Not used'; } } ?> status == 2){ echo "Inactive"; }elseif ($entry->status == 1){ echo "Active"; } ?> '> '> '> ' onclick="javascript: return confirm('Please click \'OK\' to confirm ');">
HTML Snippets not found
"'> get_var( "SELECT COUNT(`id`) FROM ".$wpdb->prefix."xyz_ihs_short_code" ); $num_of_pages = ceil( $total / $limit ); $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum','%#%'), 'format' => '', 'prev_text' => '«', 'next_text' => '»', 'total' => $num_of_pages, 'current' => $pagenum ) ); if ( $page_links ) { echo '
' . $page_links . '
'; } ?>