Magento 1: Where is oauth_admin.php

The rest documentation for Magento 1 make mention of an oauth_admin.php file $callbackUrl = “http://yourhost/oauth_admin.php”; $temporaryCredentialsRequestUrl = “http://yourhost/oauth/initiate?oauth_callback=” . urlencode($callbackUrl); $adminAuthorizationUrl = ‘http://yourhost/admin/oAuth_authorize’; $accessTokenRequestUrl = ‘http://yourhost/oauth/token’; $apiUrl = ‘http://yourhost/api/rest’; $consumerKey = ‘yourconsumerkey’; $consumerSecret = ‘yourconsumersecret’; This appears to be the file/URL that oauth will redirect to after the User Authorization step. The docs fails to…

taxonomy_single filter not working on pagination

I have the below filter in my register method that will pull in a specific template file based on a custom taxonomy: add_filter(‘taxonomy_template’, function($template) { if (is_tax( ‘recipe-categories’)) { $template = ABSPATH . ‘wp-content/mu-plugins/sacfoodies/templates/recipe-taxonomy-single.php’; } return $template; }); It pull in all the recipe-categories slugs and displays the proper template as shown below: /recipe-categories/bread/ /recipe-categories/breakfast/…

How to use create_lock to prevent race condition?

This code fails, why? I find difficult to find examples using these functions to implement a sort of protection against race conditions if (!function_exists(‘create_lock’)) { require_once ABSPATH . ‘/wp-admin/includes/class-wp-upgrader.php’; } $lock = create_lock(‘whatever’, 1000); or require_once ABSPATH . ‘/wp-admin/includes/class-wp-upgrader.php’; $lock = WP_Upgrader::create_lock(‘whatever’, 1000);