WMP Plugin not showing up in the plugin panel?

Must be something you have installed or custom code causing the issue, it appears just fine for me. If your question was actually why there’s no additional menu item on the admin side then the answer would be because not every plugin has an admin page, some provide configuration options, others just do something with … Read more

Hide content editor for posts after approriate date

function disable_editor_for_old_posts_wpse_101106($post) { if (strtotime(‘-2 months’) > strtotime($post->post_date)) { remove_post_type_support(‘post’,’editor’); } } add_action(‘add_meta_boxes_post’, ‘disable_editor_for_old_posts_wpse_101106′); I couldn’t find a great hook for this but add_post_meta_boxes_* is early enough, and it passes the $post object to the callback. Basically the filter checks the post on the post edit screen and removes post type support based on the … Read more

How to ensure the visual editor doesn’t ruin my iframe?

add_shortcode(‘custom_iframe_shortcode’, ‘build_iframe’); function build_iframe($atts) { $defaults = array( ‘source’ => ‘https://example.com/calc.php?tp=dif&cl=beleggen&h=1&wf=19370&country=NL’, ‘script_source’ => ‘//example.com/iframeResizeMe.min.js.gz’ ); $args = shortcode_atts($defaults, $atts); ob_start(); ?> <iframe onload=”fa_iframeresize.do(this);” src=”https://wordpress.stackexchange.com/questions/314518/<?php echo $args[“source’]; ?>” scrolling=”no” width=”100%” style=”padding:0px;margin:0px;border-width:0px;” frameborder=”0″> </iframe> <script type=”text/javascript” src=”https://wordpress.stackexchange.com/questions/314518/<?php echo $args[“script_source’]; ?>”></script> <?php return ob_get_clean(); } then call this like [build_iframe] or [build_iframe source=”https://blah” script_source=”https://blah/blah.js’]

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)