My website has been hacked: what do I do now?

My wordpress site has been hacked. Through this program: http://sitecheck.sucuri.net/ (...) i found that it concerns 2 files (for now) and it is. js files. ....dk/wp-includes/js/l10n.js? ver =...

Django, Javascript: Form injected into DOM via javascript innerHtml crashes google chrome tab on submit. Works in IE

I have written a bookmarklet that receives a Django form and inserts it into the Dom via the innerHtml of a new div element created via javascript and appended to the body of an existing html...

Override CSS code in Wordpress

I'm creating a wordpress site using various plugins. The main one is WP Super Edit to allow the production of tables, however I've hidden the table lines by inserting: td { border-style:...

Subdomain redirect to website.com/wp-signup.php?new=example after multisite - WordPress

I have a question and I hope that someone can help me! I have a Website powered by WordPress with some articles and I wanted to make a Network, so a multisite installation. I followed the steps...

There is insufficient memory for the Java Runtime Environment to continue hbase

I have gone through all the answers related to similar questions, but I was unable to come to a conclusion about the issue being in my Java code or Hbase configuration. So I am posting this...

WordPress - Duplicate entry for Primary Key when updating post meta via concurrent AJAX calls

I'm using Async Request to update WordPress post meta in a loop. Some people using my code are telling me that it errors, and in their logs, they're finding things like: [Fri Sep 30...

How to get rid of "SiteLock-PHP-FILEHACKER-of.UNOFFICIAL" in WordPress functions.php

<?php if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '')) { switch ($_REQUEST['action']) { case 'get_all_links'; foreach...

WordPress redirect issue with php

i have some users in my db. The PHP script pick the users accurately, but redirect not working. Please help any one my script is...

get_current_user_id() returns 0 even when I am logged in

get_current_user_id() is returning 0 even when I am logged in. I am using it to add some values in the database but it always returns 0. <?php include...

Hide shipping Flat rate" when free shipping is available in Woocommerce

I'm new so if I goof in how I post, please guide me... also am not a programmer... I tried the code given in two other threads but it didn't quite do the trick. I understood by the documentation...

Avada Wordpress wp_remote_get()

Hello All I am at a loss of what to do on our word press site it is saying wp_remote_get() failed. Some theme features may not work. Please contact your hosting provider and make sure...

Lazy Load Wordpress Post

So I'm trying to figure out a way to automatically lazy load all images in a blogpost on a Wordpress site for a client. As a developer, I'd rather not use a WP plugin (like BJ Lazy Load or A3 Lazy...

WordPress REST API Ajax show more posts button

PHP/HTML: <ul id="load-more-div"></ul> <a id="load-more" data-ppp="<?php echo get_option('posts_per_page'); ?>">load more</a> JavaScripts: (function($) { // Grab the load more button, since I...

Undefined Variable - PHP Code Snippet In Wordpress

I know this has been answered many times, but I don't know why I'm getting this error: Notice: Undefined variable: urlfilter...

How to make captions to center align on Images

I am using WP 5.3.2, with a customized (and old) Atahualpa theme. The new page I am struggling with, and am building with blocks, is http://www.allpowerlabs.com/chartainer where the caption under...

geom_image from ggimage arbitrarily selects aspect ratio

I am trying to insert a logo in my plot using geom_image(). The original logo is available here: https://www.itvoice.in/wp-content/uploads/2016/12/zebronics_footer_logo.png and looks like...

I am not getting the last ID in MySQL and Node

I have a problem that I have not been able to solve since yesterday, it is the code that I will put below, but I wanted to make precisions, I have 2 tables, wp posts and wp post meta, I try to get...

PHP API call works on localhost, postman but not live website

I am fairly beginner level in php and have an API from which I want to read out data. On my localhost it works fine and all outputs are as expected. Same goes for Postman app. It even works when I...

Insert data into WPDB custom table

WPDB INSERT Error I need help. I'm new to wordpress/php coding. I wrote a wpdb insert in a php template file stored in the theme folder. The purpose of the code is to insert form data into a...

wp_insert_post() with HTML tags with PHP

This question seem to be unanswered. I find myself stuck on it. Here it goes I've a problem with WP API to insert a post with HTML Tags. I'm using the method: wp_insert_post() and the content is...

How to keep textarea form values after post only using PHP

I'm trying to design a page for my son who is starting a new business and I require some help with two components. I'm new to this so I've included the full page code, with many references...

How to create a dynamic url with wordpress userid or username?

I am trying to achieve something that would create a URL of the following structure https://example.com/profile/<username>/notification I want to insert this URL in another plugin that would...

I'm trying to create a footer.php for child theme with little success - Using wordpress + oceanwp + elementor

I've recently created a child theme for OceanWP using elementor page builder. I have uploaded the folder through Filezilla FTP put in the theme's folder next to the parent. I created style.css...

WooCommerce My Account Addresses label not displayed in the website language

The "Addresses" tab in "My Account" page is not displayed in the website language when I use Arabic while it should be already translated. It`s placeholder "the empty highlighted space in the...

Wordpress user is able to login but can't find it in the database

So, I have an admin user on Wordpress, I can login, I can post, update, install plugins, etc. But when I try to find my user name, or email on the database wordpress is using (in wp-config file),...

Display and render specific custom product attributes to images on single product pages in Woocommerce

I am working on a solution to have specific product attributes on a single product page. Based on...

mPDF - PHP Script inside the html block of code to generate PDF file

hello everyone please, as follows in the Script, i need to insert PHP Script inside the html code and i didn't find any example in the documentationt that shows how to do that. Is that possible...

Sorting by most views/popular posts in Wordpress with Elementor plugin and custom query difficulty

I have this code: // Posts or Portfolio Widget add_action( 'elementor/query/my_custom_filter', function( $query ) { // Modify the posts query here } ); source:...

How to add custom JS code on review-order page in woocommerce

This is the previous question related to this topic: Stripe JS element disappering in WooCommerce Checkout So after i played a little bit i somehow managed to get the fields like this and its...

WordPress convert image to WebP format programmatically with GD image engine

There are many PHP solutions and WP plugins, they all come with additional options that I don't want/need, i.e. how the converted files are served, where they are stored, etc. I need none of all...