Looking for a solution – slightly convoluted problem
Looking for a solution – slightly convoluted problem
Looking for a solution – slightly convoluted problem
you can use this function i think it works properly. add_filter( ‘wp_authenticate_user’, ‘verify_recaptcha_on_login’, 10, 3 ); function verify_recaptcha_on_login($user, $password) { $secretkey = “your secret key”; if (isset($_POST[‘g-recaptcha-response’])) { $response = wp_remote_get( ‘https://www.google.com/recaptcha/api/siteverify?secret=”.$secretkey.”&response=” . $_POST[“g-recaptcha-response’] ); $response = json_decode($response[‘body’], true); if (true == $response[‘success’]) { return $user; } else { // FIXME: This one fires if … Read more
As you can see in comments section of my question, «birgire» had suggested to a user of his plugin to change the google drive direct link as follow so that It can be recognized an played in the WordPress playlist: A normal google drive direct link is something like this: https://drive.google.com/uc?export=download&id=0Bz4YdwRI3rnCMFRoTmtSS0M1VHM If you make sure … Read more
Your website is infected by Malware. Hackers are using your WordPress website for ‘spamvertising.’ This causes an insane traffic spike. Spam emails are sent from your server with links to existing or new pages that are created by the hacker. Spamvertising can vandalize blogs, websites, forums, and comment sections with hyperlinks to get a higher … Read more
Adding this code to the top of the index.php file in your theme will return a 403 if the theme directory is accessed directly: if ( ! defined( ‘ABSPATH’ ) ) { header( ‘HTTP/1.0 403 Forbidden’ ); die(); } However, you never see that code in any theme’s index.php file, because it’s unnecessary. I only … Read more
Anything to do with using the Google Places API is going to be off-topic here, but the best place to start would be the developer docs. However, how you interact with the API data within WordPress is certainly on-topic. I would suggest a wrapper function that caches the results periodically: /** * Get places data … Read more
I would suggest a shortcode: function gcse_wpse_143459($atts,$content) { return ‘<gcse:searchbox-only></gcse:searchbox-only>’; } add_shortcode(‘gcse’,’gcse_wpse_143459′); Then use [gcse] instead of trying to paste in an oddball html-ish tag.
Despite the fact your site lacks a robots.txt file, it might be worth making one to allow for Googlebot and other bots to crawl your website. Please use this example: User-agent: * Allow: / Disallow: /wp-content Note: Please remove or amend the /wp-content disallow on the robots.txt, if for whatever reason, you’d like your images … Read more
Hook into the action wp_head, test if you are on the category archive or a single post with that category, and print the proper meta element: add_action( ‘wp_head’, ‘wpse_91073_noindex’ ); function wpse_91073_noindex() { if ( ( is_singular() && in_category( ‘CATEGORY_SLUG’ ) ) or is_category( ‘CATEGORY_SLUG’ ) ) { print ‘<meta name=”robots” content=”noindex”>’; } } Replace … Read more
The reason is you are using HostGator and enable the feature is Google Analytics Integration, by enable this one, HostGator will automatically add this snipped of code into your main website and all of it sub or add-on domain: <script src=”https://wordpress.stackexchange.com/google_analytics_auto.js”></script></head> I my self also faced with this issue, my main website is http://nguyenhuutrong.com and … Read more