Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    shaan1991
    @shaan1991
    how do i contact you?
    Tamim Rahman
    @trtultimate_twitter
    Hello guys, I'm new here. Nice to see you all.
    Edison Calle
    @edisonake
    Hello guys, Newbie here. I'm hoping someone can help me solve a WordPress issue?
    Raunak Hajela
    @raunakhajela
    Hi @edisonake what's the issue?
    Edison Calle
    @edisonake
    @raunakhajela Hi, i
    Raunak Hajela
    @raunakhajela
    Hey buddy
    Edison Calle
    @edisonake
    @raunakhajela Hi, thanks i'm trying to solve an issue with WP and wp_kses_post.
    Raunak Hajela
    @raunakhajela
    What?
    What's the issue?
    Edison Calle
    @edisonake
    wp_kses_post is used to sanitize content and while doing this it doesn't output <iframe>
    Raunak Hajela
    @raunakhajela
    Yaa but issue?
    Ooh

    on a wp template you can do this:

    $allowed_tags = wp_kses_allowed_html( 'post' );
    var_dump( $allowed_tags );

    and it will output the list of allowed html tags; iframe is not inlcuded there so i need to add it

    following the 1st block of code on that link, and editing it should add iframes.
    This is what I'm doing:
    function vipx_allow_contenteditable_on_divs() {
        global $allowedposttags;
    
        $tags = array( 'iframe', 'embed', 'object' );
        $new_attributes = array( 'src' => array(), 'height' => array() );
    
        foreach ( $tags as $tag ) {
            if ( isset( $allowedposttags[ $tag ] ) && is_array( $allowedposttags[ $tag ] ) ) {
                $allowedposttags[ $tag ] = array_merge( $allowedposttags[ $tag ], $new_attributes );
            }
        }
    
    }
    add_action( 'init', 'vipx_allow_contenteditable_on_divs' );
    Edison Calle
    @edisonake
    i saw that previously. This is an example of how to also make it work
    https://aaronreimann.com/2015/07/27/adding-code-to-allow-an-iframe-in-wordpress/
    But i'm trying to follow the documentation from WordPress VIP
    https://vip.wordpress.com/documentation/register-additional-html-attributes-for-tinymce-and-wp-kses/
    Raunak Hajela
    @raunakhajela
    Oh okay...will try and let you know :)
    Edison Calle
    @edisonake
    thank you so much, I really appreciate it.
    just FYI, on their documentation, looks like they forgot to add brackets for the 'if' statement.
    Raunak Hajela
    @raunakhajela
    Haaha yaa
    Caesar Ian Belza
    @moreishi
    I hope you can help me. I'm stock at this scenario. I want to populate data from a form html to FormData(), but I can't make it work.
    var fd = new FormData();
    fd.append('name','test');
    Ghost
    @ghost~59d9ee50d73408ce4f7916bf
    Hello everyone, I really don't understand how do I add jquery in Wordpress? If i am correct for group of gitter.im
    Why does Google Search mess up? No tutorial of jquery in Wordpress and nothing show how do I add in page or template full width page
    Edison Calle
    @edisonake

    @sourceskyboxer These days, WordPress automatically loads jQuery for you, so you don't need to add it, as you can see in the code:
    https://github.com/WordPress/WordPress/tree/master/wp-includes/js/jquery

    This article can explain a little more if you still have questions.
    Hope this helps

    Ghost
    @ghost~59d9ee50d73408ce4f7916bf
    @edisonake Oh thank you for help !
    Raunak Hajela
    @raunakhajela
    @edisonake WordPress include old jQuery version not new...if you make new theme which support new functions and stuff then you hv to include
    Ben Matthews
    @LeodanBen_twitter
    Also remember if you are writing jQuery for WordPress to make sure that you are wrapping your code as described in https://premium.wpmudev.org/blog/daily-tip-adding-custom-js-to-wordpress-remember-jquery-noconflict-wrappers/
    aiemanqz
    @aiemanqz
    hello
    is anyone has this kind of problem ?
    Untitled.png
    i've been stuck for a week with this typeform login issue
    i cannot proceed to the next chapter
    ArnobBiswas
    @ArnobBiswas
    I have the same issue @aiemanqz
    can't find a way to reach the mentors to solve this problem
    ArnobBiswas
    @ArnobBiswas
    can any give a solution to this problem please ?
    Davide Pugliese
    @Deviad
    Hello
    Anyone?
    Jonathan Aldas
    @jonaadas
    hello
    Mahmudul Hasan
    @Pondit-Hasan
    hello! Good Day to every one!
    Atanas Angelov
    @atanas-dev
    Hi guys!
    Can't seem to find any rules on what is OK to post here - are there any specific rules apart from "Be excellent to each other" ? :smile:
    Atanas Angelov
    @atanas-dev
    If anyone is interested, I've recently published my brand new starter theme https://github.com/htmlburger/wpemerge-theme :rocket: (MVC, Routing, Middleware, SASS + PostCSS, ES6, separate bundles for front-end, admin and login pages, blade support & more)
    sengzy
    @sengzy
    newbie here.. hope all is well in here guys
    mohammadNaseer
    @mohammadNaseer
    yes i like this until now i am very excite .
    freelancing job now i can work any time this is great .
    i am in first road but i have many power for complete this .
    freelancing job like imagination but now is really .
    two years ago i can't work any thing
    but now i have new hope with freelancing job
    Fahim Uddin
    @fahimuddin_gitlab
    @fahimuddin_gitlab
    Can anyone have the answer of my question here ? Any suggestions or solutions would be appreciated !
    https://stackoverflow.com/questions/50926495/wordpress-using-object-storage-for-assets-files
    g
    @germgerm
    Hi there - dumb newbie question, I am looking at a site that uses [php function=xx] to inject some generated text but I just can't figure out how to find the function so I can modify its return what it returns
    R7ooom
    @R7ooom
    hello there i want to in join coders trust how can i start ??
    ajeyprasand
    @ajeyprasand
    hii
    i am newbie
    Serhii Dudchenko
    @jetsuit
    Hi all ! Could you recommend some free plugins for multi language support and basic SEO (like title, description, etc) ? Thank you in advance ! :)