Create a client and api following auth0 wordpress docs, https://auth0.com/docs/cms/wordpress/configuration
- Add the
app_metadata
scope to the api. - Add app_metadata to a user
{
<?php | |
function add_to_yoast_seo($post_id, $metatitle, $metadesc, $metakeywords){ | |
$ret = false; | |
// Include plugin library to check if Yoast Seo is presently active | |
include_once( ABSPATH.'panel/includes/plugin.php' ); | |
if(is_plugin_active(ABSPATH.'wp-content/plugins/wordpress-seo/wp-seo.php')) { | |
//plugin is activated | |
$updated_title = update_post_meta($post_id, '_yoast_wpseo_title', $metatitle); |
AL : Alabama | |
AK : Alaska | |
AZ : Arizona | |
AR : Arkansas | |
CA : California | |
CO : Colorado | |
CT : Connecticut | |
DE : Delaware | |
DC : District of Colombia | |
FL : Florida |
Create a client and api following auth0 wordpress docs, https://auth0.com/docs/cms/wordpress/configuration
app_metadata
scope to the api.{
<?php | |
if (!function_exists('get_post_id_by_meta_key_and_value')) { | |
/** | |
* Get post id from meta key and value | |
* @param string $key | |
* @param mixed $value | |
* @return int|bool | |
* @author David Mårtensson <david.martensson@gmail.com> | |
*/ | |
function get_post_id_by_meta($key, $value) { |
"Getting your current location" = Obteniendo tu ubicación actual | |
"Allow your browser to use geolocation when requested, or search above." = Permite que tu navegador habilite la geolocalización, o utiliza la función de búsqueda situada en la parte superior. | |
"Could not get your current location" = No pudimos obtener tu ubicación actual | |
"We couldn't find any locations near you" = No encontramos ubicaciones cercanas a ti | |
"Enable Geolocation in your browser or mobile device settings and try again, or search above" = Habilita la geolocalización en tu navegador o en la configuración de tu dispositivo móvil e intenta de nuevo, o utiliza la función de búsqueda situada en la parte superior. |
<?php | |
$post = get_queried_object(); | |
$index_id = $post->ID; | |
?> |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
# go back to a commit and remove commits ahead | |
git reset --hard 203b24f | |
git push origin HEAD --force |
$('[data-toggle]').on('click', function() { | |
$(document).trigger('click.zf.trigger', '[data-toggle]'); | |
}); |
# Stop MySQL Service | |
sudo systmctl stop mysql | |
# Make service directory and give permission to mysql to write | |
sudo mkdir /var/run/mysqld | |
sudo chown mysqld: /var/run/mysqld | |
# Start MySQL manually | |
sudo mysqld_safe --skip-grant-tables --skip-networking & |