html id is removed for non admin user?

simplest solution – set the post_author to an admin or editor user. The reason “id” and other attributes and tags are stripped from the content is to prevent unauthorized users to inject content which might be used to “still” the credentials of other users. Right now you don’t explicitly set the user to which the … Read more

how to remove +new from wp admin area

I think what you are asking is changing the text +NEW to ADD Deal. This code is adjusted like that. add_action( ‘admin_bar_menu’, ‘change_new_post_name’, 999 ); function change_new_post_name ( $wp_admin_bar ) { //Removing +New $wp_admin_bar->remove_node( ‘new-content’ ); //hyperlink for the new link. This can be anything. Currently it’s default. $link = get_bloginfo(‘url’).’/wp-admin/post-new.php’; //Parameters to create a … Read more

Equivalent of admin.php for public pages

Even if admin-ajax.php and Ajax API were created to be used in ajax requests, they can be used in normal http requests with no issues, just be aware that is_admin() will be true even if user is not logged and the request is done from frontend. What you have to do is create a callback … Read more

Getting rid of menu items on a custom taxonomy

This is not your code I suspect, as there are really many errors in your code. I’m going to list them Firstly, you are registering your custom post type inside a function that you hook to init, which is fine. Then you register your taxonomies outside that function. What the reason bhin that is, I … Read more

admin edit link from a specific page

I am not sure I completely follow your second example. You can use get_edit_post_link() template tag, which will output the link to admin side for the current post (only for users who can edit the post). If you just want pretty link for that there is no native way, but it looks similar to what … Read more

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