Skip to content

Instantly share code, notes, and snippets.

@sareiodata
Created July 2, 2014 08:45
Show Gist options
  • Save sareiodata/76f701e01db6685829db to your computer and use it in GitHub Desktop.
Save sareiodata/76f701e01db6685829db to your computer and use it in GitHub Desktop.
Empty WordPress plugin
<?php
/**
* Plugin Name: Name Of The Plugin
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
* Description: A brief description of the Plugin.
* Version: The Plugin's Version Number, e.g.: 1.0
* Author: Name Of The Plugin Author
* Author URI: http://URI_Of_The_Plugin_Author
* License: A "Slug" license name e.g. GPL2
*/
/* Copyright YEAR PLUGIN_AUTHOR_NAME (email : PLUGIN AUTHOR EMAIL)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Start writing code after this line!
@tfxstartupinternational

Excellent! :)

@agrimarcal
Copy link

add_filter ('trp_gp_lang_parameter', 'trp_gp_change_parameter_name');
función trp_gp_change_parameter_name ($ name) {
regresar 'idioma';
}

@jackal-star
Copy link

How to fix Href lang to non-canonical on wordpress?

@luc-constantin
Copy link

thank you

@ersanjay5991
Copy link

@sareiodata can you please update with latest version and activate and deactivate hook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment