Skip to content

Instantly share code, notes, and snippets.

Emili Castells Dinamiko

Block or report user

Report or block Dinamiko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dkpdf_pdf_author.php
function custom_dkpdf_pdf_author( $author ) {
$author = 'your-logic-here';
return $author;
add_filter( 'dkpdf_pdf_author', 'custom_dkpdf_pdf_author' );
View dkpdf_pdf_filename.php
function custom_dkpdf_pdf_filename( $filename ) {
$current_user = wp_get_current_user();
$filename = $current_user->display_name.' '.get_the_title();
return $filename;
add_filter( 'dkpdf_pdf_filename', 'custom_dkpdf_pdf_filename' );
View mlp-api-extension.php
* Plugin Name: MultilingualPress REST API Extension
* Description: Adds REST endpoints that allow users to get translations for a specific post or term.
* Version: 0.1
class MLP_REST_API_Extension {
public function __construct() {
View dkpdfg-index-featured-image.php
View fontawesome-cheatsheet.html
<i style="font-size:50px;color:orange;" class="fa">&#xf1c1;</i>
View wp-api-response.js
"id": 1,
"link": "",
"title": {
"rendered": "Hello world!"
View replace-https.php
$content = get_the_content();
$content = str_replace("https", "http", $content);
echo $content;
View dkpdfg-index.php
* dkpdfg-index.php
* This template is used to display the content in the PDF
* Do not edit this template directly,
* copy this template and paste in your theme (or child theme) inside a directory named dkpdfg
View dkpdf-acf-map-ok.php
$location = get_field('post_map');
if( !empty($location) ): ?>
<img style="margin-top:25px;" width="1500" height="250" src="<?php echo $location['lat'];?>,<?php echo $location['lng'];?>&zoom=15&size=1500x250&sensor=false&markers=color:red%7Clabel:%7C<?php echo $location['lat'];?>,<?php echo $location['lng'];?>">
<?php endif; ?>
View dkpdf-content-block.php
// add your stuff here
You can’t perform that action at this time.