How to remove products-links after the product title using remove_action

First, you’re correct that removing the action calling the products_links method would work, and that this is specifically MrBara_WooCommerce->products_links(). In your functions.php, you can just use remove_action without wrapping it in a function used as a callback for another add_action, btw. so: remove_action(‘products_links, array(‘MrBara_WooCommerce’, ‘woocommerce_single_product_summary, 0) 10 is default priority, and while we may assume … Read more

How to use printf to output two links?

This should do it: $text = __( ‘<strong><a href=”https://wordpress.stackexchange.com/questions/268780/%1$s”>login</a> or <a href=”https://wordpress.stackexchange.com/questions/268780/%2$s”>register</a> to be able to add new adverts</strong>’, ‘adverts’ ); printf( ‘<div>’ . $text . ‘</div>’, wp_login_url(), wp_registration_url());

Make plugin php file called directly aware of WordPress?

You can’t load plugin files directly, you need to target either a front-end or admin URL that bootstraps WordPress. An easy way to do this is the admin_post_(action) action: add_action( ‘admin_post_add_foobar’, ‘prefix_admin_add_foobar’ ); function prefix_admin_add_foobar() { // your code here } You can then POST your data to admin_url( ‘admin-post.php’ ) and set action to … Read more

WP RSS Aggregator plugins breaks after switch to HTTPS

This sounds like your local DNS settings resolve your domain name to the server instead of going properly to the proxy. hmm, reading the question again, if the proxy is on the same machine, you might have some firewall misconfiguration. Best long term solution is just not to rely on the wordpress cron and replace … Read more

Admin page button create new

Its just HTML code. Follow this structure. <div class=”wrap”> <h1> PAGE TITLE GOES HERE <a href=”” class=”page-title-action”> BUTTON TEXT GOES HERE </a> </h1>