This is the piece of code that I believe is causing a fatal error on my WordPress site when trying to install a theme:
add_action( 'init', 'create_post_type', 0 );
The error I receive is:
Fatal error: Cannot redeclare create_post_type() (previously declared in /home/content/30/4376030/html/wp-content/plugins/tsw-custom-listing/tsw-custom-listing.php:44) in /home/content/30/4376030/html/wp-content/themes/dolceclassifieds/functions.php on line 551
How can I prevent this error?