Web Development & WordPress

wp_actionscheduler_logs Huge size issue and how to solve this

** If the code shared below don’t work, then you can clear the table as per the screenshot i shared below

The database table becomes huge, it may be using either any SEO or Cache plugins ( my guess) you can see the size in the screenshot below, you can clear it as per the screenshot

wp_actionscheduler_logs Huge size issue and how to solve this

also one.com provides this code which should clear the table within 7 days ( which was 30 days by default)

add_filter( 'action_scheduler_retention_period', 'onecom_action_scheduler_purge' );
/**
* Change Action Scheduler default purge to 1 week
*/
function onecom_action_scheduler_purge() {
return 604800;
}

you need to put this above code in function.php ( screenshot below)

wp_actionscheduler_logs Huge size issue and how to solve this function php
Web Development & WordPress

How to redirect Author Page URL to Different Page

Change Author Link or Redirect Author URL to different page

Sometimes you may need to change default author url to different page. Here I am sharing you the code which you can use without modifying the theme file.


function modify_author_posts_url( $author_posts_url, $author_id ) {
  // modify the URL here
  $author_posts_url = 'https://www.example.com/';
  return $author_posts_url;
}
add_filter( 'author_link', 'modify_author_posts_url', 10, 2 );

You can use Code Snippet plugins to use the code, here is the screenshot about how you can use the code.

Change Author Link or Redirect Author URL to different page  using Code Snippet
Web Development & WordPress

Free Yoga based WordPress Site: Modification of Header, footer, menu, sidebar, author, category and more.

If you are a Yoga instructor and trying to create your website, here is your solution. Here I have shown in a video (4minutes) how you can create your initial Yoga Teaching site for free and how u can set up the site. Also I have shared css codes to modify it

You can see Demo here.

Here is the OceanWP TheAme.

Continue reading “Free Yoga based WordPress Site: Modification of Header, footer, menu, sidebar, author, category and more.”