This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "sebmeric.id" is my Blockstack ID. https://onename.com/sebmeric |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Nemus Slider | |
* https://wordpress.org/plugins/nemus-slider/ | |
* nemus-slider.php line 75 | |
* Reported issue : https://wordpress.org/support/topic/php-fatal-error-call-to-a-member-function-add_cap-on-a-non-object/ | |
*/ | |
//Capabilities | |
function nemus_slider_add_caps_to_admin() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Registers a specific editor stylesheet for the current post type. | |
* | |
* @see https://developer.wordpress.org/reference/functions/add_editor_style/ | |
*/ | |
function my_theme_add_editor_styles() { | |
global $pagenow, $current_screen; | |
// Current post-type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gutenberg backoffice common content stylesheet | |
* | |
* Do note that every CSS declarations will be prepended with .editor-styles-wrapper class. | |
**/ | |
/** =Bugs | |
*************************************/ | |
/* @see https://wordpress.org/support/topic/many-new-bugs-after-update/ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// as an example, this is the way to add a type to forge links to php.net manual | |
function F2L_types( $type, $name, $content ) { | |
if ( 'phpf' === $type ) { | |
$content = '<code><a href="https://www.php.net/manual/fr/function.' . str_replace( '_', '-', $name ) . '.php" title="' . esc_attr__( 'Check on php.net...', 'txt-domain' ) . '" rel="external noopener noreferrer">' . $name . '</a></code>'; | |
} | |
return $content; | |
} | |
add_filter( 'F2L_types', 'F2L_types', 10, 3 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Registers a specific editor stylesheet for a specific post id. | |
*/ | |
function actusoins_add_editor_styles_by_post_id() { | |
global $pagenow; | |
// Are we on a post edit page ? | |
if ( isset( $pagenow ) && 'post.php' === $pagenow ) { | |
$post_id = $_GET['post']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Enqueue in editor pages a specific editor-script.js file | |
*/ | |
function my_theme_editor_container_query() { | |
// Load the editor script within Gutenberg. | |
wp_enqueue_script( 'my_theme_editor_container_query', get_stylesheet_directory_uri() .'/editor-script.js' ); | |
} | |
add_action( 'enqueue_block_editor_assets', 'my_theme_editor_container_query' ); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace SMeric\Utilities; | |
/** | |
* Simple MySQLi Class 0.3.2 | |
* | |
* @author JReam | |
* @license GNU General Public License 3 (http://www.gnu.org/licenses/) | |
* | |
* This program is free software; you can redistribute it and/or modify it |