Search
 
SCRIPT & CODE EXAMPLE
 

CSS

Définir un nombre maximum de mots sur les titres des publications WordPress

<?php
function maxWord($title){
global $post;
$title = $post->post_title;
if (str_word_count($title) >= 10 ) //set this to the maximum number of words
wp_die( __('Error: your post title is over the maximum word count.') );
}
add_action('publish_post', 'maxWord');
?>
Comment

Définir le nombre minimum de mots sur les publications WordPress

<?php
function minWord($content){
global $post;
$num = 900; //set this to the minimum number of words
$content = $post->post_content;
if (str_word_count($content) < $num) wp_die( __('Error: your post is below the minimum word count.') ); } add_action('publish_post', 'minWord');
?>
Comment

PREVIOUS NEXT
Code Example
Css :: li color change css 
Css :: responsive header with logo and menu css code 
Css :: css webkit propert dissapears on build sass 
Css :: how to stop a blue color on touch in css 
Css :: #shadow-root (open) css 
Css :: images css in react native fir in container 
Css :: long text coming out of the block 
Css :: html overflow scroll only if needed with exemple 
Css :: padding order nth-child 
Css :: how to active horizental scroll for navbar menu in mobile screen 
Css :: if css 
Css :: oracle apex interactive report odd even 
Css :: h-screen in tailwind css 
Css :: center content in div 
Css :: remove bullet list css 
Css :: sumar clases css 
Css :: use clamp in scss 
Css :: docker registry fetch 
Css :: hyper text programming language 
Css :: IE support stackover flow css 
Css :: Placeholders border shadow outline 
Css :: animated display css 
Css :: centralize div css 
Typescript :: google sheets remove first character 
Typescript :: Input elements should have autocomplete attributes (suggested: "current-password") 
Typescript :: use jquery in angular 
Typescript :: angular scroll to top 
Typescript :: upgrade requests version 
Typescript :: yarn.ps1 cannot be loaded because running scripts is disabled on this system. 
Typescript :: serenity.is LinkingSetRelation add column-picker-button 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =