Skip to content

Magenaut

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

Wordpress

How is $current_page passed in woocommerce_account_orders function?

August 6, 2022 by Magenaut

The woocommerce function woocommerce_account_orders($current_page) has 1 parameter called $current_page. The function is called via woocommerce_account_orders_endpoint via the following hook – add_action( 'woocommerce_account_orders_endpoint', 'woocommerce_account_orders' );

Categories Q&A, Wordpress Tags functions, wp-query Leave a comment

Loading two post layouts for the same post with different url

August 6, 2022 by Magenaut

How can I show the same post content with two different post layouts on two different URLs?

Categories Q&A, Wordpress Tags php Leave a comment

custom field value as shortcode parameter

August 6, 2022 by Magenaut

i am using a plugin (download monitor) to display downloads via shortcodes. the shortcode has a single parameter, which is the download’s ID: [download id="123"]

Categories Q&A, Wordpress Tags shortcode Leave a comment

403 error When i send ajax request on WordPress website

August 6, 2022 by Magenaut

i have to create a specifif form ta register data into the database and send a mail without refreshing the page

Categories Q&A, Wordpress Tags ajax, jquery, wp-enqueue-script Leave a comment

how use ajax to custom page template

August 6, 2022 by Magenaut

i’m completely new to WordPress ajax .
i’m working on new custom template . there is a custom form which stores data on custom database .
for search section i need to use Ajax . then i found one way , that is create new template page which called json.php for example . it echoing the data in json formating .

Categories Q&A, Wordpress Tags ajax, json, theme-development Leave a comment

Remove password protected posts from default RSS feed

August 6, 2022 by Magenaut

I want to remove all password protected posts from the default RSS feed. Unfortunately I was only able to find one code example, but it looks like something is missing.

Categories Q&A, Wordpress Tags password, posts, rss Leave a comment

How can I specify the post status of an untrashed post?

August 5, 2022 by Magenaut

By default WordPress assigns the draft status to a post that has been untrashed. I would like to assign the pending status to posts that are untrashed.

Categories Q&A, Wordpress Tags actions, filters, post-status, trash Leave a comment

Code snippet to show current php version inside “At a Glance” box in admin

August 5, 2022 by Magenaut

Could somebody provide a code snippet which would show current php version inside the “At a glance” box win WordPress admin? There are plugins but I’d like to do it with a code.

Categories Q&A, Wordpress Tags code, php Leave a comment

Changing the HTML of notices in WooCommerce

August 5, 2022 by Magenaut

I am overriding the default error.php, success.php and notice.php templates in the templates/notices folder. These, I concluded, were seemingly only used for some of these notifications. My errors use the error template just fine, for example.

Categories Q&A, Wordpress Tags e-commerce, functions, notices, templates, woocommerce-offtopic Leave a comment

wp_script_add_data doesn’t seem to work

August 5, 2022 by Magenaut

I have tried following the codex following various threads here, simple, copy-paste various examples but to no avail. It just doesn’t work.

Categories Q&A, Wordpress Tags theme-development Leave a comment
Older posts
Newer posts
← Previous Page1 … Page31 Page32 Page33 … Page430 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