/*running python script in wordpress environment*/ function run_python_script($script_name) { $output = exec(‘python ‘ . plugin_dir_path(__FILE__) . ‘python-scripts/’ . $script_name); return $output; } add_shortcode( ‘run_python’, ‘run_python_shortcode’ ); function run_python_shortcode($attributes) { $script_name = $attributes[‘script’]; $output = run_python_script($script_name); return $output; } ?>Continue reading
echo social_share_links(); // echo “HI”; //this is revisionContinue reading
add_filter( ‘aioseo_description’, ‘aioseo_filter_description’ ); function aioseo_filter_description( $description ) { $exclude = [15,223]; if ( false !== in_array( get_the_ID(), $exclude ) ) { return ”; } return $description; }Continue reading
/** * Add the unfiltered_html capability to the editor role. * Be careful which users you grant this capability to. */ add_filter( ‘map_meta_cap’, function ( $caps, $cap, $user_id ) { // Change editor with the user role you want to…Continue reading
$therow = htmlspecialchars($_REQUEST[‘cemrow’]); echo ‘This row is ‘.$therow.’‘; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; $cemetery = “Boscombe”; $query = “SELECT * from cemdata where iroot like ‘$therow%’ order by col ASC”;…Continue reading
/** * Send a server-side event to the FB Conversions API when a Gravity Forms form is submitted using the Conversion Pixels addon. * * @param array $entry The entry data. * @param array $form The form data. */ add_action(…Continue reading