WordPress Theme Conflict With Plugin

I found the solution on the problem with Downgrading the Woocommerce based on the Theme Woocommerce. The steps would be: Deactivate the Current Woocommerce Plugin Using FTP or File Manager delete the content of the folder “woocommerce” Download the Older Version of Woocommerce Unzip and Upload using FTP Activate again the Plugin

When in WordPress I try to run a php script directly I am redirected to the home page

To use an external script with ajax, you must register an action to trigger it. To do it, you need to use wp_ajax_YourAction and wp_ajax_nopriv_YourAction add_action(‘wp_ajax_YourAction’, ‘myAjaxFunction’); // just a way to quickly print your js add_action(‘wp_head’, ‘print_js’); function print_js(){ ?><script type=”text/javascript” > jQuery(document).ready(function($) { var data = { action: ‘YourAction’, fun: ’42’, }; $.post(ajaxurl, … Read more

Confusing problem with displaying message recipient metadata

As I see it, you could replace some things in the switch. You need to open and close , tag in the same case rule, do this avoid a lot error. Like this switch( $column ) { case ‘recipientname’ : <div class=”recipentusername”><a href=”https://wordpress.stackexchange.com/questions/243290/<?php echo um_user_profile_url(); ?>” target=”_blank”><?php _e(“”, ‘front-end-pm’); ?> <?php echo implode( $name );?> … Read more

Embed Javascript code to registered users only

WordPress provides the Conditional Tags. I think is_user_logged_in() tag will work for you. List of conditional tags available. if ( is_user_logged_in() ) { // include the JavaScript File } UPDATE: Also if you want to check the user roles etc.. you can use the current_user_can() you can check both the both roles and capabilities. Better … Read more

Keeping original URL

If you’re worried about localhost vs. remote after migration then make your links relative. In the case where you are using the standard wp_nav_menu like; wp_nav_menu( array( ‘menu’ => ‘test’ )); Filter the HTML from wp_nav_menu to make all the links relative. add_filter( ‘wp_nav_menu’, function( $nav_menu, $args ){ // get the current site $site_url = … Read more