Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Q&A

Localization inside shortcode not working

August 4, 2022 by Magenaut

I use a shortcode that retrieves the url of woocommerce products and builds a link:

Categories Q&A, Wordpress Tags shortcode, xgettext Leave a comment

Changing wordpress/woocommerce notices default message to other languages (text)

August 4, 2022 by Magenaut

Hi I’m kind of new to WordPress and right now I’m changing the notice message with filters and overwriting them inside functions.php. like this:

Categories Q&A, Wordpress Tags errors, notices, php, plugins, woocommerce-offtopic Leave a comment

Homepage template and url changed?

August 4, 2022 by Magenaut

when I activated the theme. it is only one page. the navbar links are Home #About #Services #Contact

Categories Q&A, Wordpress Tags permalinks Leave a comment

‘profile_update’ hook alternative for WooCommerce user meta data

August 4, 2022 by Magenaut

I am trying to get all user details (including WooCommerce meta data) in a function that is called with user_register and profile_update hooks. This is the simplified code:

Categories Q&A, Wordpress Tags hooks, profiles, user-meta, woocommerce-offtopic Leave a comment

Redirect http to https does not work on subdir where another instance of WordPress installed

August 4, 2022 by Magenaut

I have installed two instances of WordPress, on https://www.example.com/ and a subdirectory https://www.example.com/blogs/

Categories Q&A, Wordpress Tags htaccess, http, https Leave a comment

How to display a default image for post thumbnail using functions.php?

August 4, 2022 by Magenaut

I want to display a default featured image if there hasn’t been one set. I googled for a solution and all I could find was this piece of code (below). My question is, is there a way of displaying a default image by writing a function inside the functions.php? I don’t want to repeat myself with the code.

Categories Q&A, Wordpress Tags functions, post-thumbnails Leave a comment

Using _e() or __() to translate text with div

August 4, 2022 by Magenaut

Is this the correct way to translate a sting of text?

Categories Q&A, Wordpress Tags translation Leave a comment

Set a custom field to all orders

August 4, 2022 by Magenaut

Is there a way or hook to set this custom field to true for all orders in woocommerce?
Set a custom field to all orders

Categories Q&A, Wordpress Tags woocommerce-offtopic Leave a comment

get_comments with post_status ‘public’ retrieves NULL result

August 4, 2022 by Magenaut

This is my loop:

Categories Q&A, Wordpress Tags comments, loop, post-status Leave a comment

Run add_action hook if condition

August 4, 2022 by Magenaut

Is it possible to run add_action under a certain condition?

Categories Q&A, Wordpress Tags actions, hooks Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,258 Page2,259 Page2,260 … Page2,571 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress