The plugin generated 225 characters of unexpected output during activation

I solved this issue. Problem was in way I was using register_activation_hook. I loaded TbybInstall along with other classes: /* * Load classes */ require plugin_dir_path( __FILE__ ) . ‘classes/class.PreparedCarts.php’; require plugin_dir_path( __FILE__ ) . ‘classes/class.ReturnOptions.php’; require plugin_dir_path( __FILE__ ) . ‘classes/class.TbybInstall.php’; …and I used register_activation_hook in a way which is more similar to official … Read more

Show different button text if no content

First off, as I mentioned in the comment, you got a syntax error here, where there’s an unwanted }: $meta = get_post_meta( $post->ID, ‘clpr_coupon_code’, true );} // <- that } (Updated answer — Previous code were removed since they didn’t work for you.) So if you want to show the special text when $clpr_options->coupon_code_hide does … Read more

Static Page with php echo [duplicate]

You need more than just telling the page where to find your theme. You will likely need to load WordPress. You can do that with the following: <?php define(‘WP_USE_THEMES’, false); require(‘./wp-load.php’); ?> Is the clpr_categories_list() a theme function? You could just WP’s wp_list_categories() function to what you need. The function accepts quite a number of … Read more