Last active
November 5, 2015 11:58
-
-
Save igmoweb/3d216f543626c5c08401 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| function ignacio_import_hack( $value ) { | |
| if ( ! post_type_exists( 'et_pb_layout' ) ) { | |
| register_post_type( 'et_pb_layout' ); | |
| } | |
| if ( ! taxonomy_exists( 'layout_type' ) ) { | |
| register_taxonomy( 'layout_type', 'et_pb_layout' ); | |
| } | |
| return $value; | |
| } | |
| add_filter( 'wp_import_post_data_raw', 'ignacio_import_hack' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment