如何修复add_action?

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?

Open your theme function file themes/dolceclassifieds/functions.php and go to line 551, find the function name and add prefix in the function name. then find out that action hook in that file and insert the new function name.

add_action( 'init', 'insert_here_new_function_name', 0 );

Hope it will solve your issue. but if you are not a coder then will be great to use a coder. Otherwise it can break any other function, if these are connected to other code.