Custom function in My Custom Functions returning 403

Question

In My Custom Functions plugin I have
function dropin_location() {
if (is_page (‘7’)) {
echo ”;
echo “alert(‘got here’)”;
echo ”;
}
}
add_action(‘init’, ‘dropin_location’);

On saving I get 403 error ‘Access to this resource on the server is denied!’
What am I doing wrong please.

0
user2005143 4 years 2019-11-30T10:39:06-05:00 0 Answers 58 views 0

Leave an answer

Browse
Browse