Created
October 16, 2017 07:01
-
-
Save MaximeCulea/5fb7a182449e5154d833bba3d43dfcc8 to your computer and use it in GitHub Desktop.
Default Post Types Order config.
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 | |
/** | |
* Add default options for post type order. | |
* Custom cases with my post types, maybe use a filterable option. | |
* | |
* @author Maxime CULEA | |
*/ | |
add_filter( 'pto/get_options', function () { | |
return [ | |
'show_reorder_interfaces' => [ | |
'post' => 'hide', | |
'attachment' => 'hide', | |
'promotion' => 'hide', | |
'marque' => 'show' | |
], | |
'autosort' => 1, | |
'adminsort' => 1, | |
'archive_drag_drop' => 1, | |
'capability' => 'edit_posts', | |
'navigation_sort_apply' => 1 | |
]; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment