forked from Michel2/wp-jquery-datatable
Added support for a languages folder
This commit is contained in:
@@ -289,6 +289,11 @@ function wp_jdt_style_and_script()
|
||||
wp_enqueue_script('jdt-js-datatables', plugins_url('js/dataTables.js', __FILE__), array('jquery'), '2.3.8');
|
||||
}
|
||||
|
||||
add_action('plugins_loaded', 'wp_jdt_load_textdomain');
|
||||
function wp_jdt_load_textdomain() {
|
||||
load_plugin_textdomain('wp-jquery-datatable', false, dirname(plugin_basename(__FILE__)) . '/languages');
|
||||
}
|
||||
|
||||
add_shortcode('wp_jdt', 'wp_jdt_shortcode'); // add shortcode [wp_jdt id="test" info="true" paging="true" page_length="7" paging_type="full_numbers" b_length_change="true" ordering="true" order_row_number="3" order_row_number_sort="desc" searching="true"]
|
||||
function wp_jdt_shortcode($atts, $content = "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user