This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var horses = [ | |
{ | |
"id": "1", | |
"horse": "Lookin At Lee", | |
"odds": "29-1", | |
"Owner": "L and N Racing, LLC", | |
"Trainer": "Steven M. Asmussen", | |
"Breeder": "Ray Hanson", | |
"Earnings": "$428,600", | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( "div.protected-downloads" ).each( function ( index ) { | |
$dType = $( this ).data( 'type' ); | |
$combined = $dType + "_table"; | |
$( this ).find(' table tbody' ).addClass( $combined ); | |
$mylist = $( '.' + $combined ); | |
$listitems = $mylist.find( 'tr:not(".hidden")' ); | |
$listitems.sort( function( a, b ) { | |
return $( a ).text().toUpperCase().localeCompare( $( b ).text().toUpperCase() ); | |
}) | |
$.each( $listitems, function( idx, itm ) { $mylist.append( itm ); } ); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: CSV to WPForms Entry | |
Description: Process a CSV file from the plugin directory to create WPForms entries. | |
Version: 2.0 | |
Author: Your Name | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly |