forked from Michel2/wp-jquery-datatable
Added support for a languages folder
This commit is contained in:
@@ -72,6 +72,7 @@ Is this plugin prepared for multisites? Yes.
|
||||
* Forked by [Michel Bats](https://batssoft.nl/).
|
||||
* Bumped DataTables to version 2.3.8.
|
||||
* Moved the settings page under the settings menu.
|
||||
* Added support for a languages folder.
|
||||
|
||||
= 4.1.0 =
|
||||
* Compatibility with WordPress version 6.7.1
|
||||
|
||||
@@ -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