Answers for "wp php do action"

10

action_page.php

<form method="GET">
  <input type="text" name="someName">
  //The Name Attribute will be put into the _GET inside of php 
  <input type="submit" value="Submit">
 </form>
  
<?php
$var = $_GET("TestUser1");
echo ($var);
?>
Posted by: Guest on January-23-2021
1

wp add_action

add_action('wp_footer', function($arguments) use ($myvar) { 
    echo $myvar;
}, $priority_integer, $accepted_arguments_integer);
Posted by: Guest on November-27-2020

Browse Popular Code Answers by Language