Skip to content

Instantly share code, notes, and snippets.

View raylinanthony's full-sized avatar
💭
Make better works!!

Raylin raylinanthony

💭
Make better works!!
View GitHub Profile
@raylinanthony
raylinanthony / functions.php
Last active October 18, 2020 17:44
Polylang Global Register String
<?php
/**
* @desc Small script that reads all the files in a matter of wordoress Plugin ... Polylang used to record each string in the Wordpress Admin ... (Appearance -> Languages)
* script include polylang_global_register_string()
* @author Raylin Aquino raylinaquino@gmail.com
* @date 08-16-2015 (m-d-y)
* @note: It requires installation of Polylang Plugin
*/
if (!function_exists("polylang_global_register_string")) {
@raylinanthony
raylinanthony / functions.php
Last active August 29, 2015 14:21
Wrapper <img> to <figure> and <figcaption> for Wordpress
<?php
/*
* @author Raylin Aquino <raylinaquino.com>
* @since 25-05-2015 (d m Y)
* Short script that wrapper all images (<img>) tags in a <figure> tag, with its alt attr. in a <figcaption> tag.
* The goal this... is provide the way correct of to show the images in a blog post.
*/
function figure_wrap_img($content) {