SmartCrawl(SEO) Plugin
If your WP site already install SmartCrawl plugin and you want generate SOE title, description auto,
Then we have to add following function in the site and open up the functions.php file on your active theme and add in the following:
add_action("rest_insert_post", function (\WP_Post $post, $request, $creating) { $metas = $request->get_param("meta"); if (is_array($metas)) { foreach ($metas as $name => $value) { update_post_meta($post->ID, $name, $value); } } }, 10, 3);
How to Editing functions.php directly through WordPress Admin Dashboard ?
- Open up your WordPress admin dashboard and go to Appearance > Theme File Editor
- Select your active theme of WordPress theme.
- Click on the file called Theme Functions.
You can now add snippets to your functions.php file and then click save changes to commit the updates.