php - WordPress plugin adds the number 1 to content if activated -
If the plugin is active, then my wp plugin adds numeric 1 to the content. add_filters ('the_content', 'poc_shop_cart_button_filter'); Function poc_shop_cart_button_filter ($ the_content) {$ new_content = $ the_content; $ New_content = Include (WP_CONTENT_DIR. "/custom_php/shop-cart-button.php"); Return $ New_content; } This is the page in which I am including the plugin: if (isset ($ _ cookie ['_ abs_34287GjNW'])) {$ CookieID = htmlspecialchars ($ _COOKIE ['_ _ _ _ _ _ _ _]' ', ETAQUOTES,' UTF-8 '); } And {$ cookieID = ''; } $ SupplierID = get_bloginfo ('name'); Required (Abospace. 'Wp-content / custom_php / included / connect db.fp'); Try {$ Conn = new PDO ("mysql: host = $ host; dbname = $ dbname", $ user, $ pass}; $ Conn- & gt; exec ("SET CHARACTER SET utf8"); Calculate as $ Sql = "SELECT COUNT (*) with` shopping cart` where supplierID =: supplierID and cookieID ...