This file contains 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 | |
function edit_admin_bar() { | |
/* Display options admin bar*/ | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wp-logo'); // Logo | |
$wp_admin_bar->remove_menu('about'); // A propos de WordPress | |
//$wp_admin_bar->remove_menu('wporg'); // WordPress.org | |
//$wp_admin_bar->remove_menu('documentation'); // Documentation | |
//$wp_admin_bar->remove_menu('support-forums'); // Forum de support |
This file contains 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 | |
function text_post(){ | |
// Post text without img | |
$content = nl2br(get_the_content()); | |
$postOutput = preg_replace('/<img[^>]+./', '', $content); | |
echo $postOutput; | |
} | |
This file contains 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 | |
/** | |
* Change left wpfooter text | |
*/ | |
function footer_admin () { | |
echo '<strong>' . $_SERVER['HTTP_HOST'] . '</strong> - 2021'; | |
} |
This file contains 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
import * as React from 'react'; | |
import { BackHandler } from 'react-native'; | |
import { WebView } from 'react-native-webview'; | |
export default class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.WEBVIEW_REF = React.createRef(); | |
} |