PHP code showing in wordpress Backend
-
Hi,
I have the plugin installed on my site and am currently seeing some PHP code which only shows in the backend.
I have updated the plugin and wordpress
If I deactive this code disappears.
I have cleared cache
I have tried fully deleting the plugin and reinstalling. Code still shows.
Please advise what can be done to prevent this from showing. Thank you!
Here is the PHP that I see:
function delayReviewPrompt(event, type, triggerClick = true, openLink = false) { event.preventDefault(); if ( triggerClick ) { jQuery(‘#prli_review_notice’).fadeOut(); } if ( openLink ) { var href = event.target.href; window.open(href, ‘blank’); } jQuery.ajax({ url: ajaxurl, type: ‘POST’, data: { action: ‘pl_dismiss_review_prompt’, nonce: “53d328341a”, type: type }, }) .done(function(data) { }); } jQuery(document).ready(function($) { $(‘.prli-review-selection’).click(function(event) { event.preventDefault(); var $this = $(this); var selection = $this.data(‘review-selection’); $(‘#prli_review_intro’).hide(); $(‘#prli_review‘ + selection).show(); }); $(‘body’).on(‘click’, ‘#prli_review_notice .notice-dismiss’, function(event) { delayReviewPrompt(event, ‘delay’, false); }); });
You must be logged in to reply to this topic.