Disabling “View” mentions from backend?

Instead of disabling it, you’d be better off by hiding it using a bit of CSS trickery. Try this and let me know if it works: add_action(‘admin_head’, ‘hide_quick_view’); function hide_quick_view() { echo ‘<style> span.view {display: none !important; visibility: hidden !important; opacity: 0 !important;} </style>’; } This should be placed in your functions.php file.

Customising the admin columns for a custom post type, but now most of the built in categories don’t display?

It turns out we had inadvertently created a single conventional category together with our dozen or so custom categories (this probably happened using the WP Ultimate CSV Importer which, for some of our imports, I think we’d filled in the category field hoping it would map to our custom category; it didn’t and we forgot … Read more

How to filter posts in admin by before date or by post status ‘future’?

The question pretty much got covered in another thread here. In case anyone else need anything like this I ended up using following code to hide all the posts that are over a week in the future. function hide_future_posts($where, $q) { if(is_admin() && $q->is_main_query() && !filter_input(INPUT_GET, ‘post_status’) && ( $screen = get_current_screen() ) instanceof \WP_Screen … Read more

Is Post-Form Resubmission somehow prevented in WordPress 4.2.2?

If you’re refering to WP internal forms: WordPress has an built in security mechanism called “wp nonces” (https://codex.wordpress.org/WordPress_Nonces) – that’s an unique hash generated for every WP-form. Every Backend code should check for the according nonce to make sure that The form submission wasn’t done from outside (usually attacks or bots) The form submission was … Read more

Dynamic form variables for post meta

got this working! here is an example of how to set up the form. <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.metabox_submit’).click(function(e) { e.preventDefault(); $(‘#publish’).click(); }); $(‘#add-row’).on(‘click’, function() { var row = $(‘.empty-row.screen-reader-text’).clone(true); row.removeClass(’empty-row screen-reader-text’); row.insertBefore(‘#repeatable-fieldset-one tbody>tr:last’); return false; }); $(‘.remove-row’).on(‘click’, function() { $(this).parents(‘tr’).remove(); return false; }); $(‘#repeatable-fieldset-one tbody’).sortable({ opacity: 0.6, revert: true, cursor: ‘move’, handle: ‘.sort’ }); … Read more

conditionally update css on edit.php

Your code is badly broken and it is going to be an awkward process to hack the styles in like you are trying to do. It looks like you are using some third part code but assuming that that code uses WP_List_Table as it probably should you can alter the CSS of the rows as … Read more

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