I’m afraid that’s not possible, because the purpose of this plugin is to design specs table for different kinds of products. However as you mentioned you can add some jquery to admin_head to load your desired table when the page loads.
Something like this may help :
<?php
add_action( 'admin_head', function(){ ?>
<script>
jQuery(document).ready(function(){
jQuery('#spec_tables_list option[value=42]').prop('selected', true);
jQuery('#spec_tables_list option[value=42]').trigger('change');
});
</script>
<?php }); ?>
where 42 is your table id
-
This reply was modified 8 years, 2 months ago by
Dornaweb.
I’ve tried this, but trigger('change') doesn’t load my table with value of 812.
Here is what I got:
Image
So it’s selected, but not loaded.
That’s why I’m asking.
Ps: I’ve a complete Hungarian Translation if you need.
I’m sorry i did something wrong in the previous answer , the change should go like this :
jQuery('#spec_tables_list').trigger('change');
So the full code is :
<?php
add_action( 'admin_head', function(){ ?>
<script>
jQuery(document).ready(function(){
jQuery('#spec_tables_list option[value=42]').prop('selected', true);
jQuery('#spec_tables_list').trigger('change');
});
</script>
<?php }); ?>
If it didn’t work, you can also try jQuery('#spec_tables_list').val(812) or set a delay with setTimeout
And yes i would be glad to add the Hungarian translation, you can send it to me : [email protected]
Thank you <3
-
This reply was modified 8 years, 2 months ago by
Dornaweb.
-
This reply was modified 8 years, 2 months ago by
Dornaweb.
-
This reply was modified 8 years, 2 months ago by
Dornaweb.
Okay, nvm, some jQuery scripts made it freeze the trigger, now it’s working.